From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Shiyan Subject: [PATCH] mfd: syscon: Allow to using subdevices Date: Thu, 14 Nov 2013 16:52:03 +0400 Message-ID: <1384433523-30602-1-git-send-email-shc_work@mail.ru> Return-path: Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Samuel Ortiz , Lee Jones , Grant Likely , Rob Herring , Alexander Shiyan List-Id: devicetree@vger.kernel.org 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 --- 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 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html