diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2008-05-14 19:21:22 +0000 |
---|---|---|
committer | Chris Wright <chrisw@sous-sol.org> | 2008-06-09 11:26:59 -0700 |
commit | af00e1d3e02aa7d0a04d7c837ef845887abe17fd (patch) | |
tree | 4f671b73a94c030fa7088778cabe1e1cba815540 /drivers/usb/host/ohci-omap.c | |
parent | 06c9630008899ee40df90c5ff248c2165fda54fd (diff) |
USB: fix build errors in ohci-omap.c and ohci-sm501.c
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>
Diffstat (limited to 'drivers/usb/host/ohci-omap.c')
-rw-r--r-- | drivers/usb/host/ohci-omap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/host/ohci-omap.c b/drivers/usb/host/ohci-omap.c index 611bc9f3a8a..d05375df896 100644 --- a/drivers/usb/host/ohci-omap.c +++ b/drivers/usb/host/ohci-omap.c @@ -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); |