We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4426d05 commit e49b2d6Copy full SHA for e49b2d6
drivers/gpio/gpio-vf610.c
@@ -15,10 +15,9 @@
15
#include <linux/io.h>
16
#include <linux/ioport.h>
17
#include <linux/irq.h>
18
-#include <linux/platform_device.h>
19
-#include <linux/of.h>
20
-#include <linux/of_irq.h>
21
#include <linux/pinctrl/consumer.h>
+#include <linux/platform_device.h>
+#include <linux/property.h>
22
23
#define VF610_GPIO_PER_PORT 32
24
@@ -284,7 +283,7 @@ static int vf610_gpio_probe(struct platform_device *pdev)
284
283
if (!port)
285
return -ENOMEM;
286
287
- port->sdata = of_device_get_match_data(dev);
+ port->sdata = device_get_match_data(dev);
288
289
dual_base = port->sdata->have_dual_base;
290
0 commit comments