]> asedeno.scripts.mit.edu Git - linux.git/commit
edac: cpc925: use for_each_of_cpu_node iterator
authorRob Herring <robh@kernel.org>
Mon, 27 Aug 2018 13:01:47 +0000 (08:01 -0500)
committerRob Herring <robh@kernel.org>
Fri, 28 Sep 2018 19:25:58 +0000 (14:25 -0500)
commit37dc218bed44b650702682a8f89b226a9d4a34fb
tree594f374f650273acb81c8c40e497c90c704dad3a
parent76ec23b127cd4ffeadc6fbc70d94a0c3df710405
edac: cpc925: use for_each_of_cpu_node iterator

Use the for_each_of_cpu_node iterator to iterate over cpu nodes. This
has the side effect of defaulting to iterating using "cpu" node names in
preference to the deprecated (for FDT) device_type == "cpu".

The error messages are removed in the process as it's not the driver's
job to be checking cpu nodes. Any problems with cpu nodes should be
noticed by the architecture code.

Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: linux-edac@vger.kernel.org
Acked-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/edac/cpc925_edac.c