From: Enric Balletbo i Serra Date: Sat, 9 Jul 2016 09:43:19 +0000 (+0200) Subject: watchdog: ziirave_wdt: Correct I2C device id to fix module autoloading. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=22daf7a71683185db6bcb089e006be5f99dddf9c;p=linux-beck.git 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 Reviewed-by: Guenter Roeck Signed-off-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck --- 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) } static struct i2c_device_id ziirave_wdt_id[] = { - { "ziirave-wdt", 0 }, + { "rave-wdt", 0 }, { } }; MODULE_DEVICE_TABLE(i2c, ziirave_wdt_id);