diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2007-11-08 12:28:27 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2007-11-08 12:28:27 +0000 |
commit | 729f4259193979af5c442616e86c0bc25c4b7e7f (patch) | |
tree | 83cf38f5a7c5e5368f2329a53cf5213b0a264fcf /target/linux/adm5120/files/drivers/usb/host/adm5120-drv.c | |
parent | eaca6d017264a9501262d76f4d7b8ec494fee1d2 (diff) | |
download | master-187ad058-729f4259193979af5c442616e86c0bc25c4b7e7f.tar.gz master-187ad058-729f4259193979af5c442616e86c0bc25c4b7e7f.tar.bz2 master-187ad058-729f4259193979af5c442616e86c0bc25c4b7e7f.zip |
[adm5120] USB driver fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9513 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/files/drivers/usb/host/adm5120-drv.c')
-rw-r--r-- | target/linux/adm5120/files/drivers/usb/host/adm5120-drv.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/target/linux/adm5120/files/drivers/usb/host/adm5120-drv.c b/target/linux/adm5120/files/drivers/usb/host/adm5120-drv.c index 208416e03d..60f955279d 100644 --- a/target/linux/adm5120/files/drivers/usb/host/adm5120-drv.c +++ b/target/linux/adm5120/files/drivers/usb/host/adm5120-drv.c @@ -163,14 +163,14 @@ static const struct hc_driver adm5120_hc_driver = { /* * scheduling support */ - .get_frame_number = admhc_get_frame, + .get_frame_number = admhc_get_frame_number, /* * root hub support */ .hub_status_data = admhc_hub_status_data, .hub_control = admhc_hub_control, - .hub_irq_enable = admhc_rhsc_enable, + .hub_irq_enable = admhc_hub_irq_enable, #ifdef CONFIG_PM .bus_suspend = admhc_bus_suspend, .bus_resume = admhc_bus_resume, @@ -201,8 +201,7 @@ static int usb_hcd_adm5120_remove(struct platform_device *pdev) return 0; } -#if 0 -/* TODO */ +#ifdef CONFIG_PM static int usb_hcd_adm5120_suspend(struct platform_device *dev) { struct usb_hcd *hcd = platform_get_drvdata(dev); @@ -216,17 +215,17 @@ static int usb_hcd_adm5120_resume(struct platform_device *dev) return 0; } -#endif +#else +#define usb_hcd_adm5120_suspend NULL +#define usb_hcd_adm5120_resume NULL +#endif /* CONFIG_PM */ static struct platform_driver usb_hcd_adm5120_driver = { .probe = usb_hcd_adm5120_probe, .remove = usb_hcd_adm5120_remove, .shutdown = usb_hcd_platform_shutdown, -#if 0 - /* TODO */ .suspend = usb_hcd_adm5120_suspend, .resume = usb_hcd_adm5120_resume, -#endif .driver = { .name = "adm5120-hcd", .owner = THIS_MODULE, |