diff options
Diffstat (limited to 'drivers/usb/host/ohci-ppc-of.c')
-rw-r--r-- | drivers/usb/host/ohci-ppc-of.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/host/ohci-ppc-of.c b/drivers/usb/host/ohci-ppc-of.c index 64c2ed9ff95e..8294e2fcc2f6 100644 --- a/drivers/usb/host/ohci-ppc-of.c +++ b/drivers/usb/host/ohci-ppc-of.c | |||
@@ -185,8 +185,7 @@ err_rmr: | |||
185 | 185 | ||
186 | static int ohci_hcd_ppc_of_remove(struct platform_device *op) | 186 | static int ohci_hcd_ppc_of_remove(struct platform_device *op) |
187 | { | 187 | { |
188 | struct usb_hcd *hcd = dev_get_drvdata(&op->dev); | 188 | struct usb_hcd *hcd = platform_get_drvdata(op); |
189 | dev_set_drvdata(&op->dev, NULL); | ||
190 | 189 | ||
191 | dev_dbg(&op->dev, "stopping PPC-OF USB Controller\n"); | 190 | dev_dbg(&op->dev, "stopping PPC-OF USB Controller\n"); |
192 | 191 | ||
@@ -203,7 +202,7 @@ static int ohci_hcd_ppc_of_remove(struct platform_device *op) | |||
203 | 202 | ||
204 | static void ohci_hcd_ppc_of_shutdown(struct platform_device *op) | 203 | static void ohci_hcd_ppc_of_shutdown(struct platform_device *op) |
205 | { | 204 | { |
206 | struct usb_hcd *hcd = dev_get_drvdata(&op->dev); | 205 | struct usb_hcd *hcd = platform_get_drvdata(op); |
207 | 206 | ||
208 | if (hcd->driver->shutdown) | 207 | if (hcd->driver->shutdown) |
209 | hcd->driver->shutdown(hcd); | 208 | hcd->driver->shutdown(hcd); |