linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gpio: clps711x: Add module alias to support module auto loading
@ 2014-02-04  9:39 Axel Lin
  2014-02-05 10:05 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2014-02-04  9:39 UTC (permalink / raw)
  To: Linus Walleij; +Cc: Alexander Shiyan, linux-gpio

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 <axel.lin@ingics.com>
---
 drivers/gpio/gpio-clps711x.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpio/gpio-clps711x.c b/drivers/gpio/gpio-clps711x.c
index d355027..3c2ba2ad 100644
--- a/drivers/gpio/gpio-clps711x.c
+++ b/drivers/gpio/gpio-clps711x.c
@@ -97,3 +97,4 @@ module_platform_driver(clps711x_gpio_driver);
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Alexander Shiyan <shc_work@mail.ru>");
 MODULE_DESCRIPTION("CLPS711X GPIO driver");
+MODULE_ALIAS("platform:clps711x-gpio");
-- 
1.8.1.2




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] gpio: clps711x: Add module alias to support module auto loading
  2014-02-04  9:39 [PATCH] gpio: clps711x: Add module alias to support module auto loading Axel Lin
@ 2014-02-05 10:05 ` Linus Walleij
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2014-02-05 10:05 UTC (permalink / raw)
  To: Axel Lin; +Cc: Alexander Shiyan, linux-gpio@vger.kernel.org

On Tue, Feb 4, 2014 at 10:39 AM, Axel Lin <axel.lin@ingics.com> wrote:

> 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 <axel.lin@ingics.com>

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-05 10:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-04  9:39 [PATCH] gpio: clps711x: Add module alias to support module auto loading Axel Lin
2014-02-05 10:05 ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).