diff options
author | Hans de Goede <hdegoede@redhat.com> | 2016-10-05 18:51:12 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2016-11-29 11:21:25 +0300 |
commit | 41751b033aaa9eb996f43496d1e8295cfd7dbcb0 (patch) | |
tree | c43becafc20494a8e7323d41d5675b6a3ab7c79b /drivers/mfd/axp20x-i2c.c | |
parent | 8e52b61cc8ead97ebe9de63a7ab1e70039a48129 (diff) | |
download | linux-41751b033aaa9eb996f43496d1e8295cfd7dbcb0.tar.xz |
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 <dennis@ausil.us>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/axp20x-i2c.c')
-rw-r--r-- | drivers/mfd/axp20x-i2c.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/mfd/axp20x-i2c.c b/drivers/mfd/axp20x-i2c.c index b1b865822c07..d35a5fe6c950 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); |