]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: mcp23s08: fix up compilation error
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 12 Dec 2014 10:22:11 +0000 (11:22 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 12 Dec 2014 10:22:11 +0000 (11:22 +0100)
commit1cfdc705f26200bb5a04240f926ba3885d3258d2
treeea9cea0e4e1a6e2b4cbc6ee85a25aaeeea0f6814
parent05326a7f1c404e6d77f2880cf12e7186fc9e357b
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 chip.dev->of_node to be used, as struct device
always has an of_node in place.

Cc: Alexander Stein <alexander.stein@systec-electronic.com>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mcp23s08.c