aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>2016-07-09 05:43:19 -0400
committerWim Van Sebroeck <wim@iguana.be>2016-07-17 15:01:31 -0400
commit22daf7a71683185db6bcb089e006be5f99dddf9c (patch)
tree858d5d0247bc76fd6fcc22adc71d14a59298481a
parentff9cc8384a3efba7e3daedf66dfd58b0a0fff069 (diff)
watchdog: ziirave_wdt: Correct I2C device id to fix module autoloading.
The I2C core removes the manufacturer prefix from the compatible field so it reports to user-space the uevent i2c:rave-wdt, but this doesn't match with the i2c_device_id (i2c:ziirave-wdt) array so the module is not autoloaded. Correct the I2C device id to match with the reported uevent and fix the module autoloading functionality. Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
-rw-r--r--drivers/watchdog/ziirave_wdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/ziirave_wdt.c b/drivers/watchdog/ziirave_wdt.c
index cbe373de3659..fa1efef3c96e 100644
--- a/drivers/watchdog/ziirave_wdt.c
+++ b/drivers/watchdog/ziirave_wdt.c
@@ -339,7 +339,7 @@ static int ziirave_wdt_remove(struct i2c_client *client)
339} 339}
340 340
341static struct i2c_device_id ziirave_wdt_id[] = { 341static struct i2c_device_id ziirave_wdt_id[] = {
342 { "ziirave-wdt", 0 }, 342 { "rave-wdt", 0 },
343 { } 343 { }
344}; 344};
345MODULE_DEVICE_TABLE(i2c, ziirave_wdt_id); 345MODULE_DEVICE_TABLE(i2c, ziirave_wdt_id);