* [PATCH] net: rfkill: gpio: Enable module auto-loading for ACPI based switches
@ 2014-09-12 18:50 Marcel Holtmann
2014-09-12 19:46 ` Marcel Holtmann
0 siblings, 1 reply; 2+ messages in thread
From: Marcel Holtmann @ 2014-09-12 18:50 UTC (permalink / raw)
To: Johannes Berg; +Cc: netdev
The switches that are enumerated over ACPI require a MODULE_ALIAS to
allow auto-loading of the module.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
---
net/rfkill/rfkill-gpio.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/net/rfkill/rfkill-gpio.c b/net/rfkill/rfkill-gpio.c
index 02a86a27fd84..35e659392209 100644
--- a/net/rfkill/rfkill-gpio.c
+++ b/net/rfkill/rfkill-gpio.c
@@ -180,3 +180,12 @@ module_platform_driver(rfkill_gpio_driver);
MODULE_DESCRIPTION("gpio rfkill");
MODULE_AUTHOR("NVIDIA");
MODULE_LICENSE("GPL");
+
+#ifdef CONFIG_ACPI
+MODULE_ALIAS("acpi:BCM2E1A");
+MODULE_ALIAS("acpi:BCM2E39");
+MODULE_ALIAS("acpi:BCM2E3D");
+MODULE_ALIAS("acpi:BCM2E64");
+MODULE_ALIAS("acpi:BCM4752");
+MODULE_ALIAS("acpi:LNV4752");
+#endif
--
1.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] net: rfkill: gpio: Enable module auto-loading for ACPI based switches
2014-09-12 18:50 [PATCH] net: rfkill: gpio: Enable module auto-loading for ACPI based switches Marcel Holtmann
@ 2014-09-12 19:46 ` Marcel Holtmann
0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2014-09-12 19:46 UTC (permalink / raw)
To: Johannes Berg; +Cc: netdev
Hi Johannes,
> The switches that are enumerated over ACPI require a MODULE_ALIAS to
> allow auto-loading of the module.
>
> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
> ---
> net/rfkill/rfkill-gpio.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/net/rfkill/rfkill-gpio.c b/net/rfkill/rfkill-gpio.c
> index 02a86a27fd84..35e659392209 100644
> --- a/net/rfkill/rfkill-gpio.c
> +++ b/net/rfkill/rfkill-gpio.c
> @@ -180,3 +180,12 @@ module_platform_driver(rfkill_gpio_driver);
> MODULE_DESCRIPTION("gpio rfkill");
> MODULE_AUTHOR("NVIDIA");
> MODULE_LICENSE("GPL");
> +
> +#ifdef CONFIG_ACPI
> +MODULE_ALIAS("acpi:BCM2E1A");
> +MODULE_ALIAS("acpi:BCM2E39");
> +MODULE_ALIAS("acpi:BCM2E3D");
> +MODULE_ALIAS("acpi:BCM2E64");
> +MODULE_ALIAS("acpi:BCM4752");
> +MODULE_ALIAS("acpi:LNV4752");
> +#endif
while this patch gets the job done, it is too complicated. We can just use MODULE_DEVICE_TABLE for it. I will send an updated version.
Regards
Marcel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-09-12 19:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-12 18:50 [PATCH] net: rfkill: gpio: Enable module auto-loading for ACPI based switches Marcel Holtmann
2014-09-12 19:46 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox