summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@osg.samsung.com>2015-07-30 18:18:39 +0200
committerGuenter Roeck <linux@roeck-us.net>2015-08-05 17:31:59 +0200
commit1252be9ce0ab4f622b8692b648894d09c0df71ce (patch)
tree516d20f46f1eb88f6b8440d0e5d31f6fd91dc71a /drivers/hwmon
parenthwmon: (dell-smm) Blacklist Dell Studio XPS 8100 (diff)
downloadlinux-1252be9ce0ab4f622b8692b648894d09c0df71ce.tar.xz
linux-1252be9ce0ab4f622b8692b648894d09c0df71ce.zip
hwmon: (nct7904) Export I2C module alias information
The I2C core always reports the MODALIAS uevent as "i2c:<client name" regardless if the driver was matched using the I2C id_table or the of_match_table. So the driver needs to export the I2C table and this be built into the module or udev won't have the necessary information to auto load the correct module when the device is added. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Cc: stable@vger.kernel.org # v4.1+ Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/nct7904.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/nct7904.c b/drivers/hwmon/nct7904.c
index 6153df735e82..08ff89d222e5 100644
--- a/drivers/hwmon/nct7904.c
+++ b/drivers/hwmon/nct7904.c
@@ -575,6 +575,7 @@ static const struct i2c_device_id nct7904_id[] = {
{"nct7904", 0},
{}
};
+MODULE_DEVICE_TABLE(i2c, nct7904_id);
static struct i2c_driver nct7904_driver = {
.class = I2C_CLASS_HWMON,