[PATCH] USB: OHCI lh7a404 platform device conversion fixup
authorRichard Purdie <rpurdie@rpsys.net>
Thu, 17 Nov 2005 17:47:57 +0000 (09:47 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 17 Nov 2005 19:29:55 +0000 (11:29 -0800)
Fix an error in the OHCI lh7a404 driver after the platform device
conversion.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/usb/host/ohci-lh7a404.c

index 081ec3f5cff4e41572c7833890ce977e6736d9a8..3959ccc88332fb07e8e6f7f037c41fcbc73ffa8e 100644 (file)
@@ -219,7 +219,7 @@ static int ohci_hcd_lh7a404_drv_probe(struct platform_device *pdev)
 
 static int ohci_hcd_lh7a404_drv_remove(struct platform_device *pdev)
 {
-       struct usb_hcd *hcd = platform_get_drvdata(dev);
+       struct usb_hcd *hcd = platform_get_drvdata(pdev);
 
        usb_hcd_lh7a404_remove(hcd, pdev);
        return 0;