Commit 02fbd8bc61add7407b6d59db53b23a8d59ef2e2d

Authored by Jingoo Han
Committed by Greg Kroah-Hartman
1 parent d9f2f13d2a

USB: ehci-sh: remove unnecessary platform_set_drvdata()

The driver core clears the driver data to NULL after device_release
or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d
(device-core: Ensure drvdata = NULL when no driver is bound).
Thus, it is not needed to manually clear the device driver data to NULL.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

drivers/usb/host/ehci-sh.c
... ... @@ -176,7 +176,6 @@
176 176  
177 177 usb_remove_hcd(hcd);
178 178 usb_put_hcd(hcd);
179   - platform_set_drvdata(pdev, NULL);
180 179  
181 180 clk_disable(priv->fclk);
182 181 clk_disable(priv->iclk);