Driver can be built as module and in such case for DT-based platform the
OF match table will be used for matching.  Export the module alias
information for this.  This will also allow removal of I2C device id
related code.

Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>
---
 drivers/mfd/max14577.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mfd/max14577.c b/drivers/mfd/max14577.c
index 6cbe96b28f42..f6772d64a6a4 100644
--- a/drivers/mfd/max14577.c
+++ b/drivers/mfd/max14577.c
@@ -152,6 +152,7 @@ static const struct of_device_id max14577_dt_match[] = {
        },
        {},
 };
+MODULE_DEVICE_TABLE(of, max14577_dt_match);
 
 static bool max14577_muic_volatile_reg(struct device *dev, unsigned int reg)
 {
-- 
2.9.3

Reply via email to