Commit d143a8ed authored by Libo Chen's avatar Libo Chen Committed by Greg Kroah-Hartman
Browse files

usb: ohci-at91: remove unnecessary dev_set_drvdata()



Unnecessary dev_set_drvdata() is removed, because the driver core
clears the driver data to NULL after device_release or on probe failure.

Signed-off-by: default avatarLibo Chen <libo.chen@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c9a0552e
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -235,8 +235,6 @@ static void usb_hcd_at91_remove(struct usb_hcd *hcd,
	clk_put(fclk);
	clk_put(iclk);
	fclk = iclk = hclk = NULL;

	dev_set_drvdata(&pdev->dev, NULL);
}

/*-------------------------------------------------------------------------*/