]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
usb: musb: add MODULE_ALIAS for udev module loading
authorFelipe Balbi <felipe.balbi@nokia.com>
Fri, 13 Jun 2008 10:04:01 +0000 (13:04 +0300)
committerTony Lindgren <tony@atomide.com>
Mon, 23 Jun 2008 11:10:31 +0000 (14:10 +0300)
platform drivers should add MODULE_ALIAS for allowing
udev module loading.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/musb/musb_core.c

index 019898ab1ad703cbb306d42edf3da267680d6ff0..8f7671cd5fc4ba3bbecb477307c6ea64114dfc2b 100644 (file)
@@ -134,11 +134,13 @@ MODULE_PARM_DESC(debug, "initial debug message level");
 
 #define DRIVER_INFO DRIVER_DESC ", v" MUSB_VERSION
 
-const char musb_driver_name[] = "musb_hdrc";
+#define MUSB_DRIVER_NAME "musb_hdrc"
+const char musb_driver_name[] = MUSB_DRIVER_NAME;
 
 MODULE_DESCRIPTION(DRIVER_INFO);
 MODULE_AUTHOR(DRIVER_AUTHOR);
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:" MUSB_DRIVER_NAME);
 
 
 /*-------------------------------------------------------------------------*/