linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mfd: syscon: fix syscon probing from dt
@ 2015-01-06 15:30 Philipp Zabel
  2015-01-06 19:05 ` Heiko Stübner
  2015-01-06 19:36 ` Arnd Bergmann
  0 siblings, 2 replies; 9+ messages in thread
From: Philipp Zabel @ 2015-01-06 15:30 UTC (permalink / raw)
  To: Samuel Ortiz, Lee Jones
  Cc: Arnd Bergmann, Tomasz Figa, Vivek Gautam,
	Javier Martinez Canillas, Pankaj Dubey, Heiko Stuebner,
	linux-kernel, kernel, Philipp Zabel

Patch bdb0066df96e ("mfd: syscon: Decouple syscon interface from platform devices")
breaks probing pure syscon devices from device tree, such as anatop and
iomuxc-gpr on i.MX. This patch adds back the dt id table to match against
"syscon" compatible device tree nodes.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
 drivers/mfd/syscon.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c
index 176bf0f..70b8654 100644
--- a/drivers/mfd/syscon.c
+++ b/drivers/mfd/syscon.c
@@ -174,6 +174,11 @@ struct regmap *syscon_regmap_lookup_by_phandle(struct device_node *np,
 }
 EXPORT_SYMBOL_GPL(syscon_regmap_lookup_by_phandle);
 
+static const struct of_device_id of_syscon_match[] = {
+	{ .compatible = "syscon", },
+	{ },
+};
+
 static int syscon_probe(struct platform_device *pdev)
 {
 	struct device *dev = &pdev->dev;
@@ -219,6 +224,7 @@ static const struct platform_device_id syscon_ids[] = {
 static struct platform_driver syscon_driver = {
 	.driver = {
 		.name = "syscon",
+		.of_match_table = of_syscon_match,
 	},
 	.probe		= syscon_probe,
 	.id_table	= syscon_ids,
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-01-08 11:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-06 15:30 [PATCH] mfd: syscon: fix syscon probing from dt Philipp Zabel
2015-01-06 19:05 ` Heiko Stübner
2015-01-07  9:58   ` Philipp Zabel
2015-01-06 19:36 ` Arnd Bergmann
2015-01-07 10:57   ` Philipp Zabel
2015-01-07 11:17     ` Pankaj Dubey
2015-01-07 11:55       ` Philipp Zabel
2015-01-08 11:07         ` Pankaj Dubey
2015-01-08 11:47           ` Philipp Zabel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).