gpio: clps711x: Add module alias to support module auto loading
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.
Signed-off-by Axel Lin <[email protected]>
--- drivers/gpio/gpio-clps711x.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpio/gpio-clps711x.c +1 -0
@@ -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
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.Signed-off-by Axel Lin <[email protected]>
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