X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/463c4d86fe6b5a6b58cf6e2d69da781a7876654f..23314df94957bf3c355b60b66ea7a6fee7ebaecf:/target/linux/adm5120-2.6/files/drivers/usb/host/adm5120-hcd.c?ds=sidebyside 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..87bfcc6c7 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,14 @@ 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); }