Add MODULE_ALIAS for autoloading ipmi driver on ACPI systems
authorJordan_Hargrave@Dell.com <Jordan_Hargrave@Dell.com>
Thu, 5 Sep 2013 11:36:35 +0000 (06:36 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 5 Sep 2013 15:34:32 +0000 (08:34 -0700)
I'd submitted this about a year ago but it never made it upstream.

The latest versions of the kernel drivers for ipmi can use ACPI to
determine the type of BMC device used in the system.  The following
patch adds a module alias so that udev will autoload the ipmi_si driver.

Signed-off-by: Jordan Hargrave <jordan_hargrave@dell.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/ipmi/ipmi_si_intf.c

index af4b23ffc5a659c4d515e706c66fe80b202c056e..810372c0a22f982121d47beb718669969f36427a 100644 (file)
@@ -2279,6 +2279,8 @@ static struct pnp_driver ipmi_pnp_driver = {
        .remove         = ipmi_pnp_remove,
        .id_table       = pnp_dev_table,
 };
+
+MODULE_DEVICE_TABLE(pnp, pnp_dev_table);
 #endif
 
 #ifdef CONFIG_DMI