commit | e8a51e1b51ee5730ad3913f3962e3099a5e19359 | [log] [tgz] |
---|---|---|
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | Tue Feb 17 19:03:41 2015 -0600 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Mar 25 14:53:58 2015 +0100 |
tree | 28b3f15d83a7de01e63084e0bc7111c756482db7 | |
parent | ef518cc8aa4427043efe21cb2f0799be9cb1d74d [diff] |
device: Add dev_of_node() accessor Suggested by Arnd Bergmann, this gives a practical accessor for the of_node field of struct device while instructing the compiler that it will be NULL if CONFIG_OF is not set. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>