Commit 1b35c124 authored by Bartosz Golaszewski's avatar Bartosz Golaszewski
Browse files

gpio: vf610: use generic device_get_match_data()



There's no need to use the OF-specific variant to get the match data.
Switch to using device_get_match_data() and with that remove the of.h
include. Also remove of_irq.h as none of its interfaces is used here and
order the includes in alphabetical order.

Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20241007102549.34926-1-brgl@bgdev.pl


Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
parent 1396470c
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -15,10 +15,9 @@
#include <linux/io.h>
#include <linux/ioport.h>
#include <linux/irq.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/of_irq.h>
#include <linux/pinctrl/consumer.h>
#include <linux/platform_device.h>
#include <linux/property.h>

#define VF610_GPIO_PER_PORT		32

@@ -297,7 +296,7 @@ static int vf610_gpio_probe(struct platform_device *pdev)
	if (!port)
		return -ENOMEM;

	port->sdata = of_device_get_match_data(dev);
	port->sdata = device_get_match_data(dev);

	dual_base = port->sdata->have_dual_base;