aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2021-07-14 14:51:13 +0200
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2021-07-16 10:22:33 +0200
commit3d134e75c08bd2f19bf80ffddfbd3eab3160ef07 (patch)
tree8b87776036bda7083a6023740febb4e530541620 /drivers/gpio
parentLinux 5.14-rc1 (diff)
downloadlinux-dev-3d134e75c08bd2f19bf80ffddfbd3eab3160ef07.tar.xz
linux-dev-3d134e75c08bd2f19bf80ffddfbd3eab3160ef07.zip
gpio: rcar: Always use local variable dev in gpio_rcar_probe()
As we have already have a pointer to the device structure in a local variable in gpio_rcar_probe(), we can just use "dev" instead of "p->dev". Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-rcar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c
index e7092d5fe700..ae1ffb2b230d 100644
--- a/drivers/gpio/gpio-rcar.c
+++ b/drivers/gpio/gpio-rcar.c
@@ -564,9 +564,9 @@ static int gpio_rcar_probe(struct platform_device *pdev)
}
if (p->info.has_inen) {
- pm_runtime_get_sync(p->dev);
+ pm_runtime_get_sync(dev);
gpio_rcar_enable_inputs(p);
- pm_runtime_put(p->dev);
+ pm_runtime_put(dev);
}
dev_info(dev, "driving %d GPIOs\n", npins);