gpio: rcar: reference device instead of platform device
authorVladimir Zapolskiy <vz@mleia.com>
Thu, 22 Nov 2018 20:19:41 +0000 (22:19 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 5 Dec 2018 21:52:31 +0000 (22:52 +0100)
commita53f79534f4ef418640b0f5c61500069de442e16
tree0c43deecea3391ae0dcb7a1009555fb9ffc5bb14
parent81c85ec15a1946f2e347ec0bf66936121eb97ce7
gpio: rcar: reference device instead of platform device

The change simplifies dereferences to the mediated struct device, also
it allows to limit the scope of the platform device usage to probe and
remove functions only.

Non-functional change.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-rcar.c