From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Stultz Subject: [RFC][PATCH 1/4] drivers: sram: Have sram driver probe children nodes Date: Wed, 3 Aug 2016 16:05:20 -0700 Message-ID: <1470265523-27557-2-git-send-email-john.stultz@linaro.org> References: <1470265523-27557-1-git-send-email-john.stultz@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <1470265523-27557-1-git-send-email-john.stultz-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: lkml Cc: John Stultz , Andy Yan , Rob Herring , Arnd Bergmann , Thierry Reding , =?UTF-8?q?Heiko=20St=C3=BCbner?= , Caesar Wang , Kees Cook , Guodong Xu , Haojian Zhuang , Vishal Bhoj , Bjorn Andersson , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Android Kernel Team List-Id: devicetree@vger.kernel.org In order to support sub-nodes with the sram driver, have the sram driver call of_probe_default_children(). This will allow for supportting sram based reboot reasons. Cc: Andy Yan Cc: Rob Herring Cc: Arnd Bergmann Cc: Thierry Reding Cc: Heiko Stübner Cc: Caesar Wang Cc: Kees Cook Cc: Guodong Xu Cc: Haojian Zhuang Cc: Vishal Bhoj Cc: Bjorn Andersson Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: Android Kernel Team Signed-off-by: John Stultz --- drivers/misc/sram.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/misc/sram.c b/drivers/misc/sram.c index f84b53d..6830a79 100644 --- a/drivers/misc/sram.c +++ b/drivers/misc/sram.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include @@ -384,6 +385,8 @@ static int sram_probe(struct platform_device *pdev) platform_set_drvdata(pdev, sram); + of_platform_default_populate(pdev->dev.of_node, + NULL, &pdev->dev); dev_dbg(sram->dev, "SRAM pool: %zu KiB @ 0x%p\n", gen_pool_size(sram->pool) / 1024, sram->virt_base); -- 1.9.1 -- 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