Re: [PATCH 1/2] device: Add dev_of_node() accessor

2015-02-17 Thread Rob Herring
+Greg KH On Sun, Feb 15, 2015 at 9:59 PM, Benjamin Herrenschmidt wrote: > 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

[PATCH 1/2] device: Add dev_of_node() accessor

2015-02-15 Thread Benjamin Herrenschmidt
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 --- This is what we discussed back in November and I had forgotten to finish :)