diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-12-23 12:38:09 +0200 |
---|---|---|
committer | Bartosz Golaszewski <brgl@bgdev.pl> | 2022-01-03 11:06:18 +0100 |
commit | 80f60eba9ceea670092f599a6c90ca2cd7794004 (patch) | |
tree | 2c20294c09aa711ffb33ce0970ba051c1e30187f /drivers/gpio | |
parent | 4a08d63c243ae8525c40016ce57b50df515fafaf (diff) | |
download | linux-stable-80f60eba9ceea670092f599a6c90ca2cd7794004.tar.gz linux-stable-80f60eba9ceea670092f599a6c90ca2cd7794004.tar.bz2 linux-stable-80f60eba9ceea670092f599a6c90ca2cd7794004.zip |
gpio: dwapb: Switch to use fwnode instead of of_node
GPIO library now accepts fwnode as a firmware node, so
switch the driver to use it and hence rectify the ACPI
case which uses software nodes.
Note, in this case it's rather logical fix that doesn't
affect functionality, thus no backporting required.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-dwapb.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpio/gpio-dwapb.c b/drivers/gpio/gpio-dwapb.c index ec0767d7800d..b0f3aca61974 100644 --- a/drivers/gpio/gpio-dwapb.c +++ b/drivers/gpio/gpio-dwapb.c @@ -15,7 +15,6 @@ #include <linux/irq.h> #include <linux/mod_devicetable.h> #include <linux/module.h> -#include <linux/of.h> #include <linux/platform_device.h> #include <linux/property.h> #include <linux/reset.h> @@ -515,9 +514,7 @@ static int dwapb_gpio_add_port(struct dwapb_gpio *gpio, return err; } -#ifdef CONFIG_OF_GPIO - port->gc.of_node = to_of_node(pp->fwnode); -#endif + port->gc.fwnode = pp->fwnode; port->gc.ngpio = pp->ngpio; port->gc.base = pp->gpio_base; |