OSDN Git Service

mfd: sec-core: Export OF module alias table
authorKrzysztof Kozlowski <krzk@kernel.org>
Wed, 25 Jul 2018 15:53:02 +0000 (17:53 +0200)
committerLee Jones <lee.jones@linaro.org>
Fri, 27 Jul 2018 08:27:15 +0000 (09:27 +0100)
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>
drivers/mfd/sec-core.c

index ca6b80d..9613b42 100644 (file)
@@ -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)