[lm-sensors] [PATCH] i2c-scmi: Provide module aliases for automatic loading

Darrick J. Wong djwong at us.ibm.com
Fri Feb 12 22:51:21 CET 2010


Ok, here's a quick patch to provide the module aliases.  Lightly tested, and
requires the patch that defines ACPI_SMBUS_IBM_HID.
---
i2c-scmi: Provide module aliases for automatic loading

Signed-off-by: Darrick J. Wong <djwong at us.ibm.com>
---

 drivers/i2c/busses/i2c-scmi.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/drivers/i2c/busses/i2c-scmi.c b/drivers/i2c/busses/i2c-scmi.c
index 4c9fb4c..388cbdc 100644
--- a/drivers/i2c/busses/i2c-scmi.c
+++ b/drivers/i2c/busses/i2c-scmi.c
@@ -54,6 +54,7 @@ static const struct acpi_device_id acpi_smbus_cmi_ids[] = {
 	{ACPI_SMBUS_IBM_HID, (kernel_ulong_t)&ibm_smbus_methods},
 	{"", 0}
 };
+MODULE_DEVICE_TABLE(acpi, acpi_smbus_cmi_ids);
 
 #define ACPI_SMBUS_STATUS_OK			0x00
 #define ACPI_SMBUS_STATUS_FAIL			0x07




More information about the lm-sensors mailing list