提交 3d134e75 编写于 作者: G Geert Uytterhoeven 提交者: Bartosz Golaszewski

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: NGeert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: NNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: NBartosz Golaszewski <bgolaszewski@baylibre.com>
上级 e73f0f0e
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册