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)
committerSudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
Wed, 21 Aug 2013 09:29:51 +0000 (10:29 +0100)
commitbd00860e960e52658cebfd65eeb4748ed6ff039f
treee30d9b7a56311e9eed0bab4043c89d988e890a1d
parentf86e4718f24b83be0c42894d2b97accc993d65d3
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>
include/linux/of_device.h