summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-08-26 17:25:42 +0200
committerLinus Walleij <linus.walleij@linaro.org>2016-09-07 16:14:42 +0200
commitbf62efeb164343916ebb89dca6dfe5e6b6751700 (patch)
tree1354903b7e81ab6f191ab9beab4d66eac27f87a9 /Documentation/devicetree
parent54c928d335d6822bfe9a8b67850aaaa74d88a769 (diff)
downloadop-kernel-dev-bf62efeb164343916ebb89dca6dfe5e6b6751700.zip
op-kernel-dev-bf62efeb164343916ebb89dca6dfe5e6b6751700.tar.gz
gpio: pca954x: fix undefined error code from remove
The recent addition of the regulator support has led to the pca953x_remove function returning uninitialized data when no platform data pointer is provided, as gcc warns when using -Wmaybe-uninitialized: drivers/gpio/gpio-pca953x.c: In function 'pca953x_remove': drivers/gpio/gpio-pca953x.c:860:9: error: 'ret' may be used uninitialized in this function [-Werror=maybe-uninitialized] This restores the previous behavior, returning 0 on success. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: e23efa311110 ("gpio: pca954x: Add vcc regulator and enable it") Acked-by: Phil Reid <preid@electromag.com.au> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'Documentation/devicetree')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud