summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-08-12 11:12:38 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-08-12 11:12:38 +0000
commit3ee29a8f6029ea0063eaa234e400b7f96b669258 (patch)
tree86bc98a546e9513fd28fbd5f1361d0c776dfdb97 /target
parent01126a88cb6a2fedfbe199e77a5ecdf560b1a98b (diff)
downloadmtk-20170518-3ee29a8f6029ea0063eaa234e400b7f96b669258.zip
mtk-20170518-3ee29a8f6029ea0063eaa234e400b7f96b669258.tar.gz
mtk-20170518-3ee29a8f6029ea0063eaa234e400b7f96b669258.tar.bz2
Fix typo (#2210)
SVN-Revision: 8402
Diffstat (limited to 'target')
-rw-r--r--target/linux/adm5120-2.6/files/drivers/usb/host/adm5120-hcd.c9
1 files changed, 3 insertions, 6 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 7a70763..4e88777 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
@@ -89,7 +89,7 @@ MODULE_AUTHOR("Jeroen Vreeken (pe1rxq@amsat.org)");
#define ADMHCD_REG_PORTSTATUS1 0x7c
#define ADMHCD_REG_HOSTHEAD 0x80
-#define ADMHCD_NUMPORTS 2
+#define ADMHCD_NUMPORTS 1
#define ADMHCD_DESC_ALIGN 16
struct admhcd_ed {
@@ -703,8 +703,6 @@ static int admhcd_start(struct usb_hcd *hcd)
struct admhcd *ahcd = hcd_to_admhcd(hcd);
unsigned long flags;
- printk(KERN_DEBUG PFX "calling admhcd_start\n");
-
spin_lock_irqsave(&ahcd->lock, flags);
/* Initialise the HCD registers */
@@ -718,7 +716,7 @@ static int admhcd_start(struct usb_hcd *hcd)
mdelay(1);
}
- hcd->uses_new_polling = 1;
+ //hcd->uses_new_polling = 1;
/* Enable USB host mode */
admhcd_reg_set(ahcd, ADMHCD_REG_CONTROL, ADMHCD_HOST_EN);
@@ -744,7 +742,6 @@ static int admhcd_start(struct usb_hcd *hcd)
spin_unlock_irqrestore(&ahcd->lock, flags);
- printk(KERN_DEBUG PFX "returning 0 from admhcd_start\n");
return 0;
}
@@ -927,7 +924,7 @@ out:
#ifdef CONFIG_PM
static int adm5120hcd_suspend(struct platform_device *pdev, pm_message_t state)
{
- pdev-dev.power.power_state = state;
+ pdev->dev.power.power_state = state;
mdelay(1);
return 0;
}