]> git.hungrycats.org Git - linux/commitdiff
USB: fix build errors in ohci-omap.c and ohci-sm501.c
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 14 May 2008 19:21:22 +0000 (19:21 +0000)
committerChris Wright <chrisw@sous-sol.org>
Mon, 9 Jun 2008 18:26:59 +0000 (11:26 -0700)
This fixes the build errors previously caused by
45fa78357eab3287b5c39f2d983b91150b3f4bd8

This makes the code mirror what went into Linus's tree previously.

Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/usb/host/ohci-omap.c
drivers/usb/host/ohci-sm501.c

index 611bc9f3a8ae98eb3c63e1bb10b1866b2d861d15..d05375df8964db70f29ca29bfd541f5dea4f20b5 100644 (file)
@@ -511,7 +511,8 @@ static int ohci_omap_suspend(struct platform_device *dev, pm_message_t message)
 
 static int ohci_omap_resume(struct platform_device *dev)
 {
-       struct ohci_hcd *ohci = hcd_to_ohci(platform_get_drvdata(dev));
+       struct usb_hcd  *hcd = platform_get_drvdata(dev);
+       struct ohci_hcd *ohci = hcd_to_ohci(hcd);
 
        if (time_before(jiffies, ohci->next_statechange))
                msleep(5);
index c852f0356fe88de595df98739f874ce2d096ddf7..dd1a067b18fc336a6d4fb58a0a662d9d63317432 100644 (file)
@@ -231,7 +231,8 @@ static int ohci_sm501_suspend(struct platform_device *pdev, pm_message_t msg)
 static int ohci_sm501_resume(struct platform_device *pdev)
 {
        struct device *dev = &pdev->dev;
-       struct ohci_hcd *ohci = hcd_to_ohci(platform_get_drvdata(pdev));
+       struct usb_hcd  *hcd = platform_get_drvdata(pdev);
+       struct ohci_hcd *ohci = hcd_to_ohci(hcd);
 
        if (time_before(jiffies, ohci->next_statechange))
                msleep(5);