k1: gpio: adjust struct gpio_chip.fwnode
Signed-off-by: lijuan <juan.li@spacemit.com> Change-Id: I3fab1939cec49698df859e6a608f3422fcf7e452
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
#include <linux/irq.h>
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/gpio.h>
|
||||
#include <linux/gpio/driver.h>
|
||||
#include <linux/clk.h>
|
||||
#include <linux/of_device.h>
|
||||
#include <linux/platform_device.h>
|
||||
@@ -379,7 +379,7 @@ static int k1x_gpio_probe(struct platform_device *pdev)
|
||||
k1x_chip->chip.set = k1x_gpio_set;
|
||||
k1x_chip->chip.to_irq = k1x_gpio_to_irq;
|
||||
#ifdef CONFIG_OF_GPIO
|
||||
k1x_chip->chip.of_node = np;
|
||||
k1x_chip->chip.fwnode = of_fwnode_handle(np);;
|
||||
k1x_chip->chip.of_xlate = k1x_gpio_of_xlate;
|
||||
k1x_chip->chip.of_gpio_n_cells = 2;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user