From 7f8ada1a84313383eff97b357515a5a0df31b321 Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Fri, 12 Feb 2016 01:30:19 -0300 Subject: mfd: max77686: Export OF module alias information When the device is registered via OF, the OF table is used to match the driver instead of the I2C device ID table but the entries in the latter are used as aliasses to load the module if the driver was not built-in. This is because the I2C core always reports an I2C module alias instead of an OF one but that could change so it is better to always export it. Signed-off-by: Javier Martinez Canillas Signed-off-by: Lee Jones --- drivers/mfd/max77686.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/mfd/max77686.c') diff --git a/drivers/mfd/max77686.c b/drivers/mfd/max77686.c index d959ebbb2194..7cc1dfd1e263 100644 --- a/drivers/mfd/max77686.c +++ b/drivers/mfd/max77686.c @@ -204,6 +204,7 @@ static const struct of_device_id max77686_pmic_dt_match[] = { }, { }, }; +MODULE_DEVICE_TABLE(of, max77686_pmic_dt_match); static int max77686_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *id) -- cgit v1.2.3 From 95a6f715bcab610237530d266f8d8f752af6cd6f Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Fri, 12 Feb 2016 01:30:16 -0300 Subject: mfd: max77686: Add max77802 to I2C device ID table The max77686 MFD driver supports both the Maxim 77686 and Maxim 77802 PMICs but only the OF device table contains entries for both devices. The max77802 entry is missing in the I2C device ID table which isn't a problem currently since the driver only supports DT but it will be needed if the driver is changed to be built as a module since the I2C core always reports a I2C modalias uevent so auto-load will not work. Signed-off-by: Javier Martinez Canillas Signed-off-by: Lee Jones --- drivers/mfd/max77686.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/mfd/max77686.c') diff --git a/drivers/mfd/max77686.c b/drivers/mfd/max77686.c index 7cc1dfd1e263..86458f5262a4 100644 --- a/drivers/mfd/max77686.c +++ b/drivers/mfd/max77686.c @@ -346,6 +346,7 @@ static int max77686_i2c_remove(struct i2c_client *i2c) static const struct i2c_device_id max77686_i2c_id[] = { { "max77686", TYPE_MAX77686 }, + { "max77802", TYPE_MAX77802 }, { } }; MODULE_DEVICE_TABLE(i2c, max77686_i2c_id); -- cgit v1.2.3