of/device: add helper to get cpu device node from logical cpu index
authorSudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
Thu, 18 Jul 2013 10:22:04 +0000 (11:22 +0100)
committerMark Brown <broonie@kernel.org>
Sat, 17 Jan 2015 13:22:35 +0000 (13:22 +0000)
commitf1068f835e9931b1ccf378b088ae5668dd1d5190
treed883c3fa6e69c7a19e756491c6ee3bc183281c4a
parent5e657ef3fc6e8becaa3cce066f3d6793dc603183
of/device: add helper to get cpu device node from logical cpu index

Multiple drivers need to get the cpu device node from the cpu logical
index and then access the of_node.

This patch adds helper function to fetch the device node directly.

Acked-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
(cherry picked from commit bd00860e960e52658cebfd65eeb4748ed6ff039f)
Signed-off-by: Mark Brown <broonie@kernel.org>
Conflicts:
include/linux/of_device.h
include/linux/of_device.h