summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorQuinn Jensen <quinn.jensen@freescale.com>2007-10-24 21:23:41 -0600
committerQuinn Jensen <quinn.jensen@freescale.com>2007-10-24 21:23:41 -0600
commit26071029c1ccabf237a67ba46dee1e3eb77e9fd9 (patch)
treebf8c7d333b9b7e76f0132ef3875f6a222d691c3d /arch
parentd2354371f2976f80e06b19570596e144855bbec4 (diff)
USB: More descriptive device registration messages.
Bugzilla 748. 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 MX27 platform. http://www.bitshrine.org/gpp/linux-2.6.22-mx-USB-More-descriptive-device-registration-m.patch
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mx27/usb.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/arch/arm/mach-mx27/usb.c b/arch/arm/mach-mx27/usb.c
index 07f9a89d400d..07672ee78f16 100644
--- a/arch/arm/mach-mx27/usb.c
+++ b/arch/arm/mach-mx27/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,
@@ -323,18 +323,16 @@ static int __init mx27_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
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;