gpio: dwapb: Switch to use fwnode instead of of_node
[linux-2.6-microblaze.git] / drivers / gpio / gpio-dwapb.c
index ec0767d..b0f3aca 100644 (file)
@@ -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;