gpio: mcp23s08: fix up compilation error

The driver depends on the chip.of_node being present to compile,
which is the case on some target platforms but not others.
Instead, rely on>of_node to be used, as struct device
always has an of_node in place.

Cc: Alexander Stein <>
Suggested-by: Linus Torvalds <>
Signed-off-by: Linus Walleij <>
1 file changed