i2c: sh_mobile: drop needless check for of_node
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 18 May 2017 21:11:40 +0000 (23:11 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 2 Jun 2017 20:52:51 +0000 (22:52 +0200)
commit90b84c057414cbcca53337c64afc348541989d7d
tree27cc21b1fbe30f69fa3c1681e3e66e6cceada85b
parentd2f31c49cf7cfe8f02b70614ae56a39b0c1d8a75
i2c: sh_mobile: drop needless check for of_node

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 <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-sh_mobile.c