lkml.org 
[lkml]   [2013]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] mfd: syscon: Allow to using subdevices
Date
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


\
 
 \ /
  Last update: 2013-11-14 14:21    [W:0.042 / U:2.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site