summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-omap.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-09-28 02:17:48 +0000
committerLinus Walleij <linus.walleij@linaro.org>2018-10-01 13:24:47 +0200
commit850d434ea37bd2e15154501279abc5c18bfb72d0 (patch)
treee5c0d966e2ec1a8ecbd6967168a4ae07aa6e04ef /drivers/gpio/gpio-omap.c
parentc4791bc6e3a6b95bed0ee72cf9784ecbb87074ee (diff)
downloadtalos-obmc-linux-850d434ea37bd2e15154501279abc5c18bfb72d0.tar.gz
talos-obmc-linux-850d434ea37bd2e15154501279abc5c18bfb72d0.zip
gpio: omap: Remove set but not used variable 'dev'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpio/gpio-omap.c: In function 'gpio_omap_cpu_notifier': drivers/gpio/gpio-omap.c:1327:17: warning: variable 'dev' set but not used [-Wunused-but-set-variable] Signed-off-by: YueHaibing <yuehaibing@huawei.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-omap.c')
-rw-r--r--drivers/gpio/gpio-omap.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c
index c081f399cef5..9887c3db6e16 100644
--- a/drivers/gpio/gpio-omap.c
+++ b/drivers/gpio/gpio-omap.c
@@ -1306,11 +1306,9 @@ static int gpio_omap_cpu_notifier(struct notifier_block *nb,
unsigned long cmd, void *v)
{
struct gpio_bank *bank;
- struct device *dev;
unsigned long flags;
bank = container_of(nb, struct gpio_bank, nb);
- dev = bank->chip.parent;
raw_spin_lock_irqsave(&bank->lock, flags);
switch (cmd) {
OpenPOWER on IntegriCloud