summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-01-23 13:17:25 +0100
committerLinus Walleij <linus.walleij@linaro.org>2017-01-26 15:17:37 +0100
commitaf81ba3cfdeefcb743e3f82cdbdbac8294ae6779 (patch)
tree8e33a4687f20d5e8fb105a2fa45d21d268490e42
parentgpio: aspeed: Add banks Y, Z, AA, AB and AC (diff)
downloadlinux-af81ba3cfdeefcb743e3f82cdbdbac8294ae6779.tar.xz
linux-af81ba3cfdeefcb743e3f82cdbdbac8294ae6779.zip
pinctrl: mvebu: remove unused variable
A cleanup caused a harmless warning: drivers/pinctrl/mvebu/pinctrl-kirkwood.c: In function 'kirkwood_pinctrl_probe': drivers/pinctrl/mvebu/pinctrl-kirkwood.c:460:19: error: unused variable 'res' [-Werror=unused-variable] The obvious fix is to remove the declaration of the now unused variable. Fixes: ad9ec4ecee68 ("pinctrl: mvebu: switch drivers to generic simple mmio") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--drivers/pinctrl/mvebu/pinctrl-kirkwood.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pinctrl/mvebu/pinctrl-kirkwood.c b/drivers/pinctrl/mvebu/pinctrl-kirkwood.c
index dad38d6dc646..be12b6d569a0 100644
--- a/drivers/pinctrl/mvebu/pinctrl-kirkwood.c
+++ b/drivers/pinctrl/mvebu/pinctrl-kirkwood.c
@@ -457,7 +457,6 @@ static const struct of_device_id kirkwood_pinctrl_of_match[] = {
static int kirkwood_pinctrl_probe(struct platform_device *pdev)
{
- struct resource *res;
const struct of_device_id *match =
of_match_device(kirkwood_pinctrl_of_match, &pdev->dev);