Re: [RFC PATCH 2/2] i2c: sh_mobile: drop needless check for of_node

2017-06-02 Thread Wolfram Sang
On Thu, May 18, 2017 at 11:11:40PM +0200, Wolfram Sang wrote: > After removal of platform_data support, we can simplify OF handling. > of_match_device() evaluates to NULL if !CONFIG_OF or if there is no node > pointer for that device, so we can remove the check for the node ptr. > >

Re: [RFC PATCH 2/2] i2c: sh_mobile: drop needless check for of_node

2017-05-19 Thread Geert Uytterhoeven
On Thu, May 18, 2017 at 11:11 PM, Wolfram Sang wrote: > After removal of platform_data support, we can simplify OF handling. > of_match_device() evaluates to NULL if !CONFIG_OF or if there is no node > pointer for that device, so we can remove the check for the

[RFC PATCH 2/2] i2c: sh_mobile: drop needless check for of_node

2017-05-18 Thread Wolfram Sang
After removal of platform_data support, we can simplify OF handling. of_match_device() evaluates to NULL if !CONFIG_OF or if there is no node pointer for that device, so we can remove the check for the node ptr. Signed-off-by: Wolfram Sang ---