X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/15331876847019b1a3cdec43dcc19073b6b41dd2..0f64ffa1b68039668dce4e9be8c5d4a3ade568c1:/target/linux/adm5120/files/drivers/usb/host/adm5120-drv.c 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 208416e03..ca7f8ef64 100644 --- a/target/linux/adm5120/files/drivers/usb/host/adm5120-drv.c +++ b/target/linux/adm5120/files/drivers/usb/host/adm5120-drv.c @@ -1,28 +1,32 @@ /* - * OHCI HCD (Host Controller Driver) for USB. + * ADM5120 HCD (Host Controller Driver) for USB * - * (C) Copyright 1999 Roman Weissgaerber - * (C) Copyright 2000-2002 David Brownell - * (C) Copyright 2002 Hewlett-Packard Company + * Copyright (C) 2007,2008 Gabor Juhos * - * Bus Glue for AMD Alchemy Au1xxx + * This file was derived from: drivers/usb/host/ohci-au1xxx.c + * (C) Copyright 1999 Roman Weissgaerber + * (C) Copyright 2000-2002 David Brownell + * (C) Copyright 2002 Hewlett-Packard Company * - * Written by Christopher Hoover - * Based on fragments of previous driver by Rusell King et al. + * Written by Christopher Hoover + * Based on fragments of previous driver by Rusell King et al. * - * Modified for LH7A404 from ahcd-sa1111.c - * by Durgesh Pattamatta - * Modified for AMD Alchemy Au1xxx - * by Matt Porter + * Modified for LH7A404 from ahcd-sa1111.c + * by Durgesh Pattamatta + * Modified for AMD Alchemy Au1xxx + * by Matt Porter + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published + * by the Free Software Foundation. * - * This file is licenced under the GPL. */ #include #include #include -#include +#include #ifdef DEBUG #define HCD_DBG(f, a...) printk(KERN_DEBUG "%s: " f, hcd_name, ## a) @@ -163,15 +167,15 @@ 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, -#ifdef CONFIG_PM + .hub_irq_enable = admhc_hub_irq_enable, +#ifdef CONFIG_PM .bus_suspend = admhc_bus_suspend, .bus_resume = admhc_bus_resume, #endif @@ -184,9 +188,6 @@ static int usb_hcd_adm5120_probe(struct platform_device *pdev) { int ret; - if (mips_machgroup != MACH_GROUP_ADM5120) - return -ENODEV; - ret = admhc_adm5120_probe(&adm5120_hc_driver, pdev); return ret; @@ -201,7 +202,7 @@ static int usb_hcd_adm5120_remove(struct platform_device *pdev) return 0; } -#if 0 +#ifdef CONFIG_PM /* TODO */ static int usb_hcd_adm5120_suspend(struct platform_device *dev) { @@ -216,17 +217,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,