diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-06-13 18:10:25 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-06-13 18:10:25 +0000 |
commit | 54b146846b057d70593e56ee5d415d3bdf91914e (patch) | |
tree | 6fc3c82f35323bcb5dfc84cfd09d6835a6deab21 /target/linux/adm5120-2.6/files/drivers/usb/host | |
parent | 47f104b513707b072e31d0f25c906d8ad9afd49a (diff) |
Better macronix bottom boot handling, thanks Gabor !
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7618 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120-2.6/files/drivers/usb/host')
-rw-r--r-- | target/linux/adm5120-2.6/files/drivers/usb/host/adm5120-hcd.c | 8 |
1 files changed, 6 insertions, 2 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 a0ccaefd5..a9d0071df 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 @@ -30,6 +30,8 @@ MODULE_DESCRIPTION("ADM5120 USB Host Controller Driver"); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Jeroen Vreeken (pe1rxq@amsat.org)"); +#define PFX "adm5120-hcd: " + #define ADMHCD_REG_CONTROL 0x00 #define ADMHCD_REG_INTSTATUS 0x04 #define ADMHCD_REG_INTENABLE 0x08 @@ -826,11 +828,13 @@ static struct platform_driver adm5120hcd_driver = { static int __init adm5120hcd_init(void) { - if (usb_disabled()) + if (usb_disabled()) return -ENODEV; - if (!adm5120_board.has_usb) + if (!adm5120_board.has_usb) { + printk(KERN_DEBUG PFX "this board does not have USB\n"); return -ENODEV; + printk(KERN_INFO PFX "registered\n"); return platform_driver_register(&adm5120hcd_driver); } |