mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] mfd: syscon: Allow to using subdevices
@ 2013-11-14 12:52 Alexander Shiyan
  2013-11-14 14:44 ` Lee Jones
  2013-11-14 14:46 ` Mark Rutland
  0 siblings, 2 replies; 4+ messages in thread
From: Alexander Shiyan @ 2013-11-14 12:52 UTC (permalink / raw)
  To: linux-kernel
  Cc: devicetree, Samuel Ortiz, Lee Jones, Grant Likely, Rob Herring,
	Alexander Shiyan

This patch adds support for using subdevices within syscon node.
Primary usage of this is describe all devices with same memory
region in one container.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 drivers/mfd/syscon.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c
index 71841f9..6e9244a 100644
--- a/drivers/mfd/syscon.c
+++ b/drivers/mfd/syscon.c
@@ -152,6 +152,9 @@ static int syscon_probe(struct platform_device *pdev)
 
 	platform_set_drvdata(pdev, syscon);
 
+	if (of_platform_populate(dev->of_node, NULL, NULL, dev))
+		dev_warn(dev, "Fail to create subdevices\n");
+
 	dev_info(dev, "regmap %pR registered\n", res);
 
 	return 0;
-- 
1.8.1.5


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

end of thread, other threads:[~2013-11-14 15:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-14 12:52 [PATCH] mfd: syscon: Allow to using subdevices Alexander Shiyan
2013-11-14 14:44 ` Lee Jones
2013-11-14 14:46 ` Mark Rutland
2013-11-14 14:58   ` Alexander Shiyan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®