lkml.org 
[lkml]   [2014]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] i8k: Add MODULE_DEVICE_TABLE macro
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.
> */
>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2014-10-18 05:01    [W:0.038 / U:3.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site