[RFT 2/4] mfd: max14577: Export OF module alias information
From: Krzysztof Kozlowski
Date: Fri Feb 17 2017 - 15:02:32 EST
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 <krzk@xxxxxxxxxx>
---
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