aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-05-07 11:17:22 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-05-07 11:17:22 +0000
commit569cd75d6109df5191217cb90f73102b4085bc04 (patch)
tree8295a45c066b940a5ca18dce74bc863cd40d0d90 /target/linux
parent68298b9723d0d3dadc98d9e2c2ed0031aa050916 (diff)
downloadupstream-569cd75d6109df5191217cb90f73102b4085bc04.tar.gz
upstream-569cd75d6109df5191217cb90f73102b4085bc04.tar.bz2
upstream-569cd75d6109df5191217cb90f73102b4085bc04.zip
Fix some HCD driver warnings
SVN-Revision: 7120
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/adm5120-2.6/files/drivers/usb/host/adm5120-hcd.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/target/linux/adm5120-2.6/files/drivers/usb/host/adm5120-hcd.c b/target/linux/adm5120-2.6/files/drivers/usb/host/adm5120-hcd.c
index 25ba4b8b93..0f0a72a895 100644
--- a/target/linux/adm5120-2.6/files/drivers/usb/host/adm5120-hcd.c
+++ b/target/linux/adm5120-2.6/files/drivers/usb/host/adm5120-hcd.c
@@ -376,7 +376,7 @@ static irqreturn_t adm5120hcd_irq(int irq, void *ptr, struct pt_regs *regs)
}
static int admhcd_urb_enqueue(struct usb_hcd *hcd, struct usb_host_endpoint *ep,
- struct urb *urb, int mem_flags)
+ struct urb *urb, gfp_t mem_flags)
{
struct admhcd *ahcd = hcd_to_admhcd(hcd);
struct admhcd_ed *ed;
@@ -704,7 +704,6 @@ static int __init adm5120hcd_probe(struct platform_device *pdev)
{
struct usb_hcd *hcd;
struct admhcd *ahcd;
- struct usb_device *udev;
struct resource *addr, *data;
void __iomem *addr_reg;
void __iomem *data_reg;
@@ -786,12 +785,8 @@ static int __init adm5120hcd_probe(struct platform_device *pdev)
out_dev:
usb_put_hcd(hcd);
-out_irq:
- free_irq(pdev->resource[1].start, hcd);
out_unmap:
iounmap(addr_reg);
-out_hcd:
- usb_put_hcd(hcd);
out_mem:
release_mem_region(addr->start, 2);
out:
@@ -802,7 +797,6 @@ static int __init_or_module adm5120hcd_remove(struct platform_device *pdev)
{
struct usb_hcd *hcd = platform_get_drvdata(pdev);
struct admhcd *ahcd;
- struct resource *res;
if (!hcd)
return 0;