From: Benjamin Herrenschmidt Date: Wed, 18 Feb 2015 01:03:41 +0000 (-0600) Subject: device: Add dev_of_node() accessor X-Git-Tag: omap-for-v4.1/fixes-rc1~166^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8a51e1b51ee5730ad3913f3962e3099a5e19359;p=pandora-kernel.git 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 Acked-by: Rob Herring Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed