commit | 170680abd1eb98a9773ed068435fef9a6402a10f | [log] [tgz] |
---|---|---|
author | Linus Walleij <linus.walleij@linaro.org> | Fri Dec 12 11:22:11 2014 +0100 |
committer | Linus Walleij <linus.walleij@linaro.org> | Fri Dec 12 11:22:11 2014 +0100 |
tree | ea9cea0e4e1a6e2b4cbc6ee85a25aaeeea0f6814 | |
parent | 256965d724347a9fa1cce42dc30987e7d92addb3 [diff] |
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>