]> git.baikalelectronics.ru Git - kernel.git/commit
of: fix unnecessary warning on missing /cpus node
authorGrant Likely <grant.likely@linaro.org>
Thu, 3 Oct 2013 20:04:31 +0000 (21:04 +0100)
committerGrant Likely <grant.likely@linaro.org>
Mon, 14 Oct 2013 11:43:44 +0000 (12:43 +0100)
commit660633cb2bc790dabd48da078546b5f92e12f423
treea264d45e0bce1325775c12ae9c73e3d64b5df21d
parentd689bf2c50128598081e9c1b6b583c3510674c62
of: fix unnecessary warning on missing /cpus node

Not all DT platforms have all the cpus collected under a /cpus node.
That just happens to be a details of FDT, ePAPR and PowerPC platforms.
Sparc does something different, but unfortunately the current code
complains with a warning if /cpus isn't there. This became a problem
with commit 03dee0d9, "driver/core cpu: initialize of_node in cpu's
device structure", which caused the function to get called for all
architectures.

This commit is a temporary fix to fail silently if the cpus node isn't
present. A proper fix will come later to allow arch code to provide a
custom mechanism for decoding the CPU hwid if the 'reg' property isn't
appropriate.

Signed-off-by: Grant Likely <grant.likely@linaro.org>
Cc: David Miller <davem@davemloft.net>
Cc: Sudeep KarkadaNagesha <Sudeep.KarkadaNagesha@arm.com>
Cc: Rob Herring <rob.herring@calxeda.com>
drivers/of/base.c