Skip to contentSkip to conversation

gpio: ucb1400: Add MODULE_ALIAS

PATCH In review Axel Lin 3 participants 3 messages Nov 19, 2013 GPIO

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 gpio: ucb1400: Add MODULE_ALIAS

This driver can be built as a module now.
Add MODULE_ALIAS to support module auto-loading.

---
 drivers/gpio/gpio-ucb1400.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpio/gpio-ucb1400.c +1 -0
index 1a605f2..06fb5cf 100644
@@ -105,3 +105,4 @@ module_platform_driver(ucb1400_gpio_driver);
 
 MODULE_DESCRIPTION("Philips UCB1400 GPIO driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:ucb1400_gpio");
Signature · 1 line
1.8.1.2
Reviewed-by on v1 1/1
#1 lore raw

Hi Axel,

Quoted 13 lines · Axel Lin

This driver can be built as a module now.
Add MODULE_ALIAS to support module auto-loading.

---
 drivers/gpio/gpio-ucb1400.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpio/gpio-ucb1400.c +0 -0
index 1a605f2..06fb5cf 100644

drivers/gpio/gpio-ucb1400.c module_platform_driver(ucb1400_gpio_driver); · line 108

Quoted 4 lines
drivers/gpio/gpio-ucb1400.c +1 -0
@@ -105,3 +105,4 @@ module_platform_driver(ucb1400_gpio_driver);
 
 MODULE_DESCRIPTION("Philips UCB1400 GPIO driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:ucb1400_gpio");

Sorry for missing that in my previous patch, and thanks for catching my mistake.

I believe this should make it into kernel version 3.13 to avoid regressions.

Signature · 7 lines
Jean Delvare
Suse L3 Support

--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html