#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 {
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 */
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);
spin_unlock_irqrestore(&ahcd->lock, flags);
- printk(KERN_DEBUG PFX "returning 0 from admhcd_start\n");
return 0;
}
#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;
}