Message ID | 1470265523-27557-2-git-send-email-john.stultz@linaro.org |
---|---|
State | New |
Headers | show |
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 <linux/io.h> #include <linux/list_sort.h> #include <linux/of_address.h> +#include <linux/of_platform.h> #include <linux/platform_device.h> #include <linux/slab.h> @@ -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);
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 <andy.yan@rock-chips.com> Cc: Rob Herring <robh@kernel.org> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Thierry Reding <treding@nvidia.com> Cc: Heiko Stübner <heiko@sntech.de> Cc: Caesar Wang <wxt@rock-chips.com> Cc: Kees Cook <keescook@chromium.org> Cc: Guodong Xu <guodong.xu@linaro.org> Cc: Haojian Zhuang <haojian.zhuang@linaro.org> Cc: Vishal Bhoj <vishal.bhoj@linaro.org> Cc: Bjorn Andersson <bjorn.andersson@linaro.org> Cc: devicetree@vger.kernel.org Cc: Android Kernel Team <kernel-team@android.com> Signed-off-by: John Stultz <john.stultz@linaro.org> --- drivers/misc/sram.c | 3 +++ 1 file changed, 3 insertions(+) -- 1.9.1