]> git.karo-electronics.de Git - linux-beck.git/commit
gpio: pca953x: make inclusion of <linux/of_platform.h> unconditional
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 9 Dec 2015 10:01:33 +0000 (11:01 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 9 Dec 2015 10:05:59 +0000 (11:05 +0100)
commitc2369d3f8cad978dae54fe2149c055a851c32a02
tree5501366b104b1286ea25296db12a412901d6a176
parent6f29c9afbe636fc0e35c82a11eaf45c3b85eb07a
gpio: pca953x: make inclusion of <linux/of_platform.h> unconditional

After adding the DT matching in
commit 6f29c9afbe636fc0e35c82a11eaf45c3b85eb07a
"gpio: pca935x: fix of-only probed devices"
compilation fails like this:

CC [M]  drivers/gpio/gpio-pca953x.o
gpio-pca953x.c: In function ‘pca953x_probe’:
gpio-pca953x.c:693:11: error: implicit declaration of
function ‘of_match_device’ [-Werror=implicit-function-declaration]
match = of_match_device(pca953x_dt_ids, &client->dev);
        ^
gpio-pca953x.c:693:9: warning: assignment makes pointer from
integer without a cast [-Wint-conversion]
match = of_match_device(pca953x_dt_ids, &client->dev);
        ^
cc1: some warnings being treated as errors
../scripts/Makefile.build:264: recipe for target
'drivers/gpio/gpio-pca953x.o' failed

After removing the conditional inclusion guards compilation
works fine again. Might be a module problem so that
fix.

Cc: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pca953x.c