diff options
author | Quinn Jensen <quinn.jensen@freescale.com> | 2007-10-24 21:23:46 -0600 |
---|---|---|
committer | Quinn Jensen <quinn.jensen@freescale.com> | 2007-10-24 21:23:46 -0600 |
commit | 05c071bed3abb9504021a7d9c0f11f022d692db3 (patch) | |
tree | 3e65ac998b647a8a842b37e9cf931d6da4b8af04 | |
parent | 26071029c1ccabf237a67ba46dee1e3eb77e9fd9 (diff) |
USB: More descriptive device registration messages.
Bugzilla 749. Patch to add more descriptive USB device registration
messages. Also, change 'pr_debug' to 'printk' for gadget registration
message, so it shows up on the console.
Applies to linux 2.6.22 kernel for MX3 platforms.
http://www.bitshrine.org/gpp/linux-2.6.22-mx-USB-More-descriptive-device-registration-2.patch
-rw-r--r-- | arch/arm/mach-mx3/usb.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/arch/arm/mach-mx3/usb.c b/arch/arm/mach-mx3/usb.c index 3b216a55ee75..45a658887648 100644 --- a/arch/arm/mach-mx3/usb.c +++ b/arch/arm/mach-mx3/usb.c @@ -130,7 +130,7 @@ static struct resource usbh2_resources[] = { #if defined(CONFIG_USB_EHCI_ARC_OTG) || defined(CONFIG_USB_GADGET_ARC) || defined(CONFIG_OTG_BTC_ARC) #if defined(CONFIG_MC13783_MXC) static struct fsl_usb2_platform_data mxc_serial_host_config = { - .name = "OTG", + .name = "OTG serial host", .platform_init = usbotg_init, .platform_uninit = usbotg_uninit, .usbmode = (u32) &UOG_USBMODE, @@ -144,7 +144,7 @@ static struct fsl_usb2_platform_data mxc_serial_host_config = { }; #elif defined(CONFIG_ISP1301_MXC) static struct fsl_usb2_platform_data mxc_serial_host_config = { - .name = "OTG", + .name = "OTG serial host", .platform_init = usbotg_init, .platform_uninit = usbotg_uninit, .usbmode = (u32) &UOG_USBMODE, @@ -159,7 +159,7 @@ static struct fsl_usb2_platform_data mxc_serial_host_config = { #endif #if defined(CONFIG_ISP1504_MXC) static struct fsl_usb2_platform_data mxc_isp1504_config = { - .name = "OTG", + .name = "OTG ULPI host", .platform_init = usbotg_init, .platform_uninit = usbotg_uninit, .usbmode = (u32) &UOG_USBMODE, @@ -324,19 +324,17 @@ static int __init mx31_usb_init(void) #if defined(CONFIG_USB_GADGET_ARC) || defined(CONFIG_OTG_BTC_ARC) if (platform_device_register(&otg_udc_device)) { - printk(KERN_ERR "can't register OTG Gadget\n"); + printk(KERN_ERR "usb: can't register OTG Gadget\n"); } else { - pr_debug("usb: OTG Gadget registered\n"); + printk(KERN_INFO "usb: OTG Gadget registered\n"); } #endif #ifdef CONFIG_USB_OTG - if (platform_device_register(&fsl_device)) { - printk(KERN_ERR "can't register otg device\n"); - } else { - pr_debug("usb: otg registered device=0x%p resources=0x%p.", - &fsl_device, fsl_device.resource); - } + if (platform_device_register(&fsl_device)) + printk(KERN_ERR "usb: can't register otg device\n"); + else + printk(KERN_INFO "usb: OTG OTG registered\n"); #endif return 0; |