]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: xilinx: convert from OF GPIO to standard devm APIs
authorRobert Hancock <hancock@sedsystems.ca>
Fri, 7 Jun 2019 17:04:16 +0000 (11:04 -0600)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 10 Jun 2019 14:22:27 +0000 (16:22 +0200)
commit366cd83735ca6f749a263326b34f1f8c4c8ac49d
tree5754f1a4ce8b3854728804c272d50fff24ffb504
parent6b38d0ae0ffeed409f4b01f1537a0359ef404054
gpio: xilinx: convert from OF GPIO to standard devm APIs

This driver was using the OF GPIO helper API, but barely used any of its
features and it cost more code than it saved. Also, the OF GPIO code is
now deprecated. Convert it to use a more standard setup and use devm
APIs for initialization to avoid the need for a remove function.

Our rationale for this change is that we are using the Xilinx GPIO with
resources injected using the MFD core rather than on the device tree
itself. Using platform rather than OF-specific resources allows this to
work for free.

Signed-off-by: Robert Hancock <hancock@sedsystems.ca>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/Kconfig
drivers/gpio/gpio-xilinx.c