summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2018-07-25 17:53:02 +0200
committerLee Jones <lee.jones@linaro.org>2018-07-27 10:27:15 +0200
commitfe8166c92a5f154c60fb2741afd247ae7716a6d3 (patch)
treef140667914e01370b507fdfd5cac385a3c6c68bc /drivers/mfd
parentmfd: as3722: Disable auto-power-on when AC OK (diff)
downloadlinux-fe8166c92a5f154c60fb2741afd247ae7716a6d3.tar.xz
linux-fe8166c92a5f154c60fb2741afd247ae7716a6d3.zip
mfd: sec-core: Export OF module alias table
In case of Device Tree platforms, even though the Samsung PMIC sec device is instantiated from DT, the driver is still matched through I2C module alias. That is because I2C core always reports an I2C module alias instead of DT one. This could change in the future so export DT module alias. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/sec-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c
index ca6b80d08ffc..9613b4257302 100644
--- a/drivers/mfd/sec-core.c
+++ b/drivers/mfd/sec-core.c
@@ -146,6 +146,7 @@ static const struct of_device_id sec_dt_match[] = {
/* Sentinel */
},
};
+MODULE_DEVICE_TABLE(of, sec_dt_match);
#endif
static bool s2mpa01_volatile(struct device *dev, unsigned int reg)