]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
i2c: add MODULE_ALIAS to twl4030 drivers
authorFelipe Balbi <felipe.balbi@nokia.com>
Fri, 13 Jun 2008 10:04:03 +0000 (13:04 +0300)
committerTony Lindgren <tony@atomide.com>
Mon, 23 Jun 2008 11:10:53 +0000 (14:10 +0300)
When built as module, it helps udev to probe them.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/i2c/chips/twl4030-core.c
drivers/i2c/chips/twl4030-gpio.c
drivers/i2c/chips/twl4030-madc.c
drivers/i2c/chips/twl4030-poweroff.c
drivers/i2c/chips/twl4030-pwrbutton.c
drivers/i2c/chips/twl4030-pwrirq.c
drivers/i2c/chips/twl4030-usb.c
drivers/input/keyboard/omap-twl4030keypad.c
drivers/rtc/rtc-twl4030.c

index 88226537cae273fd9242b587001f1ed7b642a232..adc45d4a98b97254999d9cc3bbc739962d727a27 100644 (file)
@@ -908,6 +908,7 @@ static void __exit twl4030_exit(void)
 subsys_initcall(twl4030_init);
 module_exit(twl4030_exit);
 
+MODULE_ALIAS("i2c:" DRIVER_NAME);
 MODULE_AUTHOR("Texas Instruments, Inc.");
 MODULE_DESCRIPTION("I2C Core interface for TWL4030");
 MODULE_LICENSE("GPL");
index a44894323ff8022b445863fc15f29841834bd388..f16a48ba5439be5888bb6374681f75f92763b31b 100644 (file)
@@ -827,6 +827,7 @@ static void __exit gpio_twl4030_exit(void)
 module_init(gpio_twl4030_init);
 module_exit(gpio_twl4030_exit);
 
+MODULE_ALIAS("i2c:twl4030-gpio");
 MODULE_AUTHOR("Texas Instruments, Inc.");
 MODULE_DESCRIPTION("GPIO interface for TWL4030");
 MODULE_LICENSE("GPL");
index f53a3db7fa9e6219f20ea03b00c2583df5e2072c..72b126b7e7a6d43f9ae8ad6d78754051627395ef 100644 (file)
@@ -448,6 +448,7 @@ static void __exit twl4030_madc_exit(void)
 module_init(twl4030_madc_init);
 module_exit(twl4030_madc_exit);
 
+MODULE_ALIAS("i2c:twl4030-adc");
 MODULE_AUTHOR("Nokia Corporation");
 MODULE_DESCRIPTION("twl4030 ADC driver");
 MODULE_LICENSE("GPL");
index 57c7fc75d078cc1adb290ecc4d30e1369f315c90..0ebab0ba4e9441251e7bd5c429f909d57382859e 100644 (file)
@@ -70,6 +70,7 @@ static void __exit twl4030_poweroff_exit(void)
 module_init(twl4030_poweroff_init);
 module_exit(twl4030_poweroff_exit);
 
+MODULE_ALIAS("i2c:twl4030-poweroff");
 MODULE_DESCRIPTION("Triton2 device power off");
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Peter De Schrijver");
index a8258df22fc3ec7d70e340488532103f9102e2ad..d86d489dee856294465ed1aefc8b3ce147c20e2e 100644 (file)
@@ -156,6 +156,7 @@ static void __exit twl4030_pwrbutton_exit(void)
 module_init(twl4030_pwrbutton_init);
 module_exit(twl4030_pwrbutton_exit);
 
+MODULE_ALIAS("i2c:twl4030-pwrbutton");
 MODULE_DESCRIPTION("Triton2 Power Button");
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Peter De Schrijver");
index 8f1fec675ed36ccb01e575280c0895fd02d5c8c9..a4d2e9243b9c50c308b15537b43d1242d5836383 100644 (file)
@@ -222,5 +222,6 @@ static void __exit twl4030_pwrirq_exit(void)
        }
 }
 
+MODULE_ALIAS("i2c:twl4030-pwrirq");
 subsys_initcall(twl4030_pwrirq_init);
 module_exit(twl4030_pwrirq_exit);
index 7f93b4f2d401d96f8113f8a0b960df2bd824d37e..56db3e70dd9a687ea5b314a8ce7eecc84ffbc790 100644 (file)
@@ -770,6 +770,7 @@ static void __exit twl4030_usb_exit(void)
 subsys_initcall(twl4030_usb_init);
 module_exit(twl4030_usb_exit);
 
+MODULE_ALIAS("i2c:twl4030-usb");
 MODULE_AUTHOR("Texas Instruments, Inc.");
 MODULE_DESCRIPTION("TWL4030 USB transceiver driver");
 MODULE_LICENSE("GPL");
index fc5d44e26a6a941c84e00a4b1741457ec7ee2a6f..20aeb3c611c33dde7905b39cdfb197271af6d965 100644 (file)
@@ -369,6 +369,7 @@ static void __exit omap_kp_exit(void)
 
 module_init(omap_kp_init);
 module_exit(omap_kp_exit);
+MODULE_ALIAS("platform:omap_twl4030keypad");
 MODULE_AUTHOR("Texas Instruments");
 MODULE_DESCRIPTION("OMAP TWL4030 Keypad Driver");
 MODULE_LICENSE("GPL");
index 7b0a4c519c9ec984fd40454d9881e0ffff4813cf..269ff615c0fdf88fe626c9f93499ac4f63a297a2 100644 (file)
@@ -647,6 +647,7 @@ static void __exit twl4030_rtc_exit(void)
        platform_driver_unregister(&twl4030rtc_driver);
 }
 
+MODULE_ALIAS("platform:twl4030_rtc");
 MODULE_AUTHOR("Texas Instruments, MontaVista Software");
 MODULE_LICENSE("GPL");;