aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/pxa25x_udc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/pxa25x_udc.c')
-rw-r--r--drivers/usb/gadget/pxa25x_udc.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/drivers/usb/gadget/pxa25x_udc.c b/drivers/usb/gadget/pxa25x_udc.c
index d4ca9f1f7f24..d52e869ce202 100644
--- a/drivers/usb/gadget/pxa25x_udc.c
+++ b/drivers/usb/gadget/pxa25x_udc.c
@@ -2100,6 +2100,8 @@ static int __init pxa25x_udc_probe(struct platform_device *pdev)
2100 int retval, irq; 2100 int retval, irq;
2101 u32 chiprev; 2101 u32 chiprev;
2102 2102
2103 pr_info("%s: version %s\n", driver_name, DRIVER_VERSION);
2104
2103 /* insist on Intel/ARM/XScale */ 2105 /* insist on Intel/ARM/XScale */
2104 asm("mrc%? p15, 0, %0, c0, c0" : "=r" (chiprev)); 2106 asm("mrc%? p15, 0, %0, c0, c0" : "=r" (chiprev));
2105 if ((chiprev & CP15R0_VENDOR_MASK) != CP15R0_XSCALE_VALUE) { 2107 if ((chiprev & CP15R0_VENDOR_MASK) != CP15R0_XSCALE_VALUE) {
@@ -2346,18 +2348,7 @@ static struct platform_driver udc_driver = {
2346 }, 2348 },
2347}; 2349};
2348 2350
2349static int __init udc_init(void) 2351module_platform_driver_probe(udc_driver, pxa25x_udc_probe);
2350{
2351 pr_info("%s: version %s\n", driver_name, DRIVER_VERSION);
2352 return platform_driver_probe(&udc_driver, pxa25x_udc_probe);
2353}
2354module_init(udc_init);
2355
2356static void __exit udc_exit(void)
2357{
2358 platform_driver_unregister(&udc_driver);
2359}
2360module_exit(udc_exit);
2361 2352
2362MODULE_DESCRIPTION(DRIVER_DESC); 2353MODULE_DESCRIPTION(DRIVER_DESC);
2363MODULE_AUTHOR("Frank Becker, Robert Schwebel, David Brownell"); 2354MODULE_AUTHOR("Frank Becker, Robert Schwebel, David Brownell");