Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1583698

[RFT 2/4] mfd: max14577: Export OF module alias information

From Krzysztof Kozlowski <krzk@kernel.org>
Newsgroups linux.kernel
Subject [RFT 2/4] mfd: max14577: Export OF module alias information
Date 2017-02-17 21:10 +0100
Message-ID <tbX0R-q0-1@gated-at.bofh.it> (permalink)
References <tbX0S-q0-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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@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

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[RFT 2/4] mfd: max14577: Export OF module alias information Krzysztof Kozlowski <krzk@kernel.org> - 2017-02-17 21:10 +0100

csiph-web