* [PATCH] i8k: Add MODULE_DEVICE_TABLE macro
@ 2014-10-17 22:17 Pali Rohár
2014-10-18 2:31 ` Guenter Roeck
0 siblings, 1 reply; 2+ messages in thread
From: Pali Rohár @ 2014-10-17 22:17 UTC (permalink / raw)
To: Guenter Roeck, Arnd Bergmann, Greg Kroah-Hartman
Cc: linux-kernel, Steven Honeyman, Pali Rohár
This patch adds MODULE_DEVICE_TABLE macro so i8k.ko module can be automatically
loaded based on dmi system alias.
Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
---
drivers/char/i8k.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/char/i8k.c b/drivers/char/i8k.c
index 471f985..7272b08 100644
--- a/drivers/char/i8k.c
+++ b/drivers/char/i8k.c
@@ -796,6 +796,8 @@ static struct dmi_system_id i8k_dmi_table[] __initdata = {
{ }
};
+MODULE_DEVICE_TABLE(dmi, i8k_dmi_table);
+
/*
* Probe for the presence of a supported laptop.
*/
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] i8k: Add MODULE_DEVICE_TABLE macro
2014-10-17 22:17 [PATCH] i8k: Add MODULE_DEVICE_TABLE macro Pali Rohár
@ 2014-10-18 2:31 ` Guenter Roeck
0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2014-10-18 2:31 UTC (permalink / raw)
To: Pali Rohár, Arnd Bergmann, Greg Kroah-Hartman
Cc: linux-kernel, Steven Honeyman
On 10/17/2014 03:17 PM, Pali Rohár wrote:
> This patch adds MODULE_DEVICE_TABLE macro so i8k.ko module can be automatically
> loaded based on dmi system alias.
>
> Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
> ---
> drivers/char/i8k.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/char/i8k.c b/drivers/char/i8k.c
> index 471f985..7272b08 100644
> --- a/drivers/char/i8k.c
> +++ b/drivers/char/i8k.c
> @@ -796,6 +796,8 @@ static struct dmi_system_id i8k_dmi_table[] __initdata = {
> { }
> };
>
> +MODULE_DEVICE_TABLE(dmi, i8k_dmi_table);
> +
> /*
> * Probe for the presence of a supported laptop.
> */
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-10-18 2:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-17 22:17 [PATCH] i8k: Add MODULE_DEVICE_TABLE macro Pali Rohár
2014-10-18 2:31 ` Guenter Roeck
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).