diff options
Diffstat (limited to 'drivers/usb/host/ehci-xilinx-of.c')
-rw-r--r-- | drivers/usb/host/ehci-xilinx-of.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/host/ehci-xilinx-of.c b/drivers/usb/host/ehci-xilinx-of.c index d845e3bcfaff..35c7f90384a6 100644 --- a/drivers/usb/host/ehci-xilinx-of.c +++ b/drivers/usb/host/ehci-xilinx-of.c | |||
@@ -209,8 +209,7 @@ err_irq: | |||
209 | */ | 209 | */ |
210 | static int ehci_hcd_xilinx_of_remove(struct platform_device *op) | 210 | static int ehci_hcd_xilinx_of_remove(struct platform_device *op) |
211 | { | 211 | { |
212 | struct usb_hcd *hcd = dev_get_drvdata(&op->dev); | 212 | struct usb_hcd *hcd = platform_get_drvdata(op); |
213 | dev_set_drvdata(&op->dev, NULL); | ||
214 | 213 | ||
215 | dev_dbg(&op->dev, "stopping XILINX-OF USB Controller\n"); | 214 | dev_dbg(&op->dev, "stopping XILINX-OF USB Controller\n"); |
216 | 215 | ||
@@ -229,7 +228,7 @@ static int ehci_hcd_xilinx_of_remove(struct platform_device *op) | |||
229 | */ | 228 | */ |
230 | static void ehci_hcd_xilinx_of_shutdown(struct platform_device *op) | 229 | static void ehci_hcd_xilinx_of_shutdown(struct platform_device *op) |
231 | { | 230 | { |
232 | struct usb_hcd *hcd = dev_get_drvdata(&op->dev); | 231 | struct usb_hcd *hcd = platform_get_drvdata(op); |
233 | 232 | ||
234 | if (hcd->driver->shutdown) | 233 | if (hcd->driver->shutdown) |
235 | hcd->driver->shutdown(hcd); | 234 | hcd->driver->shutdown(hcd); |