[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1406913669.22529.44.camel@hornet>
Date: Fri, 01 Aug 2014 18:21:09 +0100
From: Pawel Moll <pawel.moll@....com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Olof Johansson <olof@...om.net>,
Stephen Warren <swarren@...dotorg.org>,
Catalin Marinas <Catalin.Marinas@....com>,
"paul@...an.com" <paul@...an.com>, Arnd Bergmann <arnd@...db.de>,
Peter De Schrijver <pdeschrijver@...dia.com>,
"arm@...nel.org" <arm@...nel.org>,
"linux-tegra@...r.kernel.org" <linux-tegra@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 5/5] platform: Make platform_bus device a platform device
On Sat, 2014-07-26 at 21:13 +0100, Greg Kroah-Hartman wrote:
> > @@ -946,12 +946,20 @@ int __init platform_bus_init(void)
> >
> > early_platform_cleanup();
> >
> > - error = device_register(&platform_bus);
> > + dev_set_name(&platform_bus.dev, "%s", platform_bus.name);
> > + error = device_register(&platform_bus.dev);
> > if (error)
> > return error;
> > error = bus_register(&platform_bus_type);
> > - if (error)
> > - device_unregister(&platform_bus);
> > + if (!error) {
> > +#ifdef CONFIG_OF
> > + platform_bus.dev.of_node = of_allnodes;
> > +#endif
>
> Why are you doing this? The original code didn't do it and all was
> fine, right? What changes here?
You mean the #ifdef? It wasn't there, but Olof figured out that it
breaks !CONFIG_OF builds:
http://article.gmane.org/gmane.linux.ports.tegra/18473
as of_allnodes is only defined when CONFIG_OF. I had a choice of
#ifdefing the assignment above or providing a dummy symbol. The latter
doesn't seem sensibly, as there should be no other users for it (the
symbol).
Pawel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists