diff options
Diffstat (limited to 'drivers/usb/host/ehci-ppc-of.c')
-rw-r--r-- | drivers/usb/host/ehci-ppc-of.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/usb/host/ehci-ppc-of.c b/drivers/usb/host/ehci-ppc-of.c index 56dc732bf451..86da09c0f8d0 100644 --- a/drivers/usb/host/ehci-ppc-of.c +++ b/drivers/usb/host/ehci-ppc-of.c | |||
@@ -180,14 +180,12 @@ err_irq: | |||
180 | 180 | ||
181 | static int ehci_hcd_ppc_of_remove(struct platform_device *op) | 181 | static int ehci_hcd_ppc_of_remove(struct platform_device *op) |
182 | { | 182 | { |
183 | struct usb_hcd *hcd = dev_get_drvdata(&op->dev); | 183 | struct usb_hcd *hcd = platform_get_drvdata(op); |
184 | struct ehci_hcd *ehci = hcd_to_ehci(hcd); | 184 | struct ehci_hcd *ehci = hcd_to_ehci(hcd); |
185 | 185 | ||
186 | struct device_node *np; | 186 | struct device_node *np; |
187 | struct resource res; | 187 | struct resource res; |
188 | 188 | ||
189 | dev_set_drvdata(&op->dev, NULL); | ||
190 | |||
191 | dev_dbg(&op->dev, "stopping PPC-OF USB Controller\n"); | 189 | dev_dbg(&op->dev, "stopping PPC-OF USB Controller\n"); |
192 | 190 | ||
193 | usb_remove_hcd(hcd); | 191 | usb_remove_hcd(hcd); |
@@ -219,7 +217,7 @@ static int ehci_hcd_ppc_of_remove(struct platform_device *op) | |||
219 | 217 | ||
220 | static void ehci_hcd_ppc_of_shutdown(struct platform_device *op) | 218 | static void ehci_hcd_ppc_of_shutdown(struct platform_device *op) |
221 | { | 219 | { |
222 | struct usb_hcd *hcd = dev_get_drvdata(&op->dev); | 220 | struct usb_hcd *hcd = platform_get_drvdata(op); |
223 | 221 | ||
224 | if (hcd->driver->shutdown) | 222 | if (hcd->driver->shutdown) |
225 | hcd->driver->shutdown(hcd); | 223 | hcd->driver->shutdown(hcd); |