gpio: nomadik: replace of_find_*() by bus_find_device_by_of_node()
authorThéo Lebrun <theo.lebrun@bootlin.com>
Wed, 28 Feb 2024 11:28:13 +0000 (12:28 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 29 Feb 2024 09:29:36 +0000 (10:29 +0100)
commit0b95fcd1f42f0ff5d0464e6a0f577b883fc20a4b
tree7f31a94b2b18fd1808eb5c4fe14e9fa375334686
parent9b82653dee91d459b650779a7d682dc1686eaba9
gpio: nomadik: replace of_find_*() by bus_find_device_by_of_node()

Avoid OF APIs in the GPIO subsystem. Here, replace
of_find_device_by_node() call by bus_find_device_by_of_node().

The new helper returns a struct device pointer. Store it in a new local
variable and use it down the road.

Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Link: https://lore.kernel.org/r/20240228-mbly-gpio-v2-15-3ba757474006@bootlin.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-nomadik.c