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: Libo Chen <libo.chen@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Libo Chen 2013-08-27 11:08:11 +08:00 committed by Greg Kroah-Hartman
parent c9a0552e8d
commit d143a8edcd

View File

@ -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);
}
/*-------------------------------------------------------------------------*/