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)
commita1e6c764c26b15057425b5361dde8ecd6cd4ae2b
treee30d9b7a56311e9eed0bab4043c89d988e890a1d
parentd2456bff8a29646e2c74e16370c7239e95d9e39f
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