Skip to contentSkip to conversation

gpio: clps711x: Add module alias to support module auto loading

PATCH In review Axel Lin 2 participants 2 messages Feb 4, 2014 – Feb 5, 2014 GPIO

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 gpio: clps711x: Add module alias to support module auto loading

commit 55fe14ab872a "GPIO: clps711x: Rewrite driver for using generic GPIO code" allows this driver to be built as a module.
Thus add module alias to support module auto loading.

---
 drivers/gpio/gpio-clps711x.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpio/gpio-clps711x.c +1 -0
index d355027..3c2ba2ad 100644
@@ -97,3 +97,4 @@ module_platform_driver(clps711x_gpio_driver);
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Alexander Shiyan <[email protected]>");
 MODULE_DESCRIPTION("CLPS711X GPIO driver");
+MODULE_ALIAS("platform:clps711x-gpio");
Signature · 1 line
1.8.1.2
#1 lore raw
Quoted 5 lines · Axel Lin

commit 55fe14ab872a "GPIO: clps711x: Rewrite driver for using generic GPIO code" allows this driver to be built as a module.
Thus add module alias to support module auto loading.

Patch applied.

However I've never really understood how the alias is actually used during module loading. Where can I learn more about this?

Yours,
Linus Walleij