From: Hans de Goede Date: Wed, 5 Oct 2016 15:51:12 +0000 (+0200) Subject: mfd: axp20x-i2c: Add i2c-ids to fix module auto-loading X-Git-Tag: v4.14-rc1~1817^2~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=41751b033aaa9eb996f43496d1e8295cfd7dbcb0;p=platform%2Fkernel%2Flinux-rpi.git mfd: axp20x-i2c: Add i2c-ids to fix module auto-loading The i2c subsys does not load modules by compatible, only by i2c-id, with e.g. a modalias of: "i2c:axp209". Populate the axp20x_i2c_id[] table with supported ids, so that module auto-loading will work. Reported-by: Dennis Gilmore Signed-off-by: Hans de Goede Acked-by: Chen-Yu Tsai Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/axp20x-i2c.c b/drivers/mfd/axp20x-i2c.c index b1b8658..d35a5fe 100644 --- a/drivers/mfd/axp20x-i2c.c +++ b/drivers/mfd/axp20x-i2c.c @@ -69,10 +69,11 @@ static const struct of_device_id axp20x_i2c_of_match[] = { }; MODULE_DEVICE_TABLE(of, axp20x_i2c_of_match); -/* - * This is useless for OF-enabled devices, but it is needed by I2C subsystem - */ static const struct i2c_device_id axp20x_i2c_id[] = { + { "axp152", 0 }, + { "axp202", 0 }, + { "axp209", 0 }, + { "axp221", 0 }, { }, }; MODULE_DEVICE_TABLE(i2c, axp20x_i2c_id);