summaryrefslogtreecommitdiff
path: root/drivers/mfd/max77686.c
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@osg.samsung.com>2016-02-12 07:30:19 +0300
committerLee Jones <lee.jones@linaro.org>2016-03-16 11:50:39 +0300
commit7f8ada1a84313383eff97b357515a5a0df31b321 (patch)
treeca06c73feb8f766afdf7549defb77ce14a545ed4 /drivers/mfd/max77686.c
parenta52e46ce9c3f847925707a601dc10e9af943bc26 (diff)
downloadlinux-7f8ada1a84313383eff97b357515a5a0df31b321.tar.xz
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 <javier@osg.samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/max77686.c')
-rw-r--r--drivers/mfd/max77686.c1
1 files changed, 1 insertions, 0 deletions
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)