From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: imx5x: register SOC device
Date: Thu, 16 Mar 2017 22:53:31 +0100 [thread overview]
Message-ID: <7043958.dJaacR2zaA@wuerfel> (raw)
In-Reply-To: <20170312105633.21168-1-kernel@esmil.dk>
On Sunday, March 12, 2017 11:56:33 AM CET Emil Renner Berthing wrote:
> @@ -30,6 +30,13 @@ static void __init imx53_init_early(void)
>
> static void __init imx53_dt_init(void)
> {
> + struct device *parent = imx_soc_device_init();
> +
> + if (!parent)
> + pr_warn("failed to initialize soc device\n");
> +
> + of_platform_default_populate(NULL, NULL, parent);
> +
When we started adding soc_device, the idea was to have all on-chip
devices under the soc node in sysfs. However, this has changed now,
and for new machines, we just use it for identification and don't
change the normal of_platform_populate() logic to use it as a root.
Arnd
prev parent reply other threads:[~2017-03-16 21:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-12 10:56 [PATCH] ARM: imx5x: register SOC device Emil Renner Berthing
2017-03-16 2:27 ` Shawn Guo
2017-03-16 21:53 ` Arnd Bergmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7043958.dJaacR2zaA@wuerfel \
--to=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox