ramips: remove unnecessary macros for previous kernel versions
[openwrt/staging/stintel.git] / target / linux / ramips / files / drivers / pinctrl / pinctrl-aw9523.c
index a429bb82a3a08121e187ad05e8f50f335d40eb30..8b642e28b19abe0a4d7a44b03555236124b9de70 100644 (file)
@@ -16,7 +16,6 @@
 #include <linux/slab.h>
 #include <linux/of.h>
 #include <linux/of_device.h>
-#include <linux/version.h>
 #include <linux/gpio/consumer.h>
 #include <linux/gpio/driver.h>
 #include <linux/pinctrl/pinconf.h>
@@ -810,11 +809,7 @@ static int aw9523_init_gpiochip(struct aw9523 *awi, unsigned int npins)
        gpiochip->set_multiple = aw9523_gpio_set_multiple;
        gpiochip->set_config = gpiochip_generic_config;
        gpiochip->parent = dev;
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 6, 0)
        gpiochip->fwnode = dev->fwnode;
-#else
-       gpiochip->of_node = dev->of_node;
-#endif
        gpiochip->owner = THIS_MODULE;
        gpiochip->can_sleep = true;
 
@@ -988,12 +983,7 @@ static int aw9523_hw_init(struct aw9523 *awi)
        return regmap_reinit_cache(awi->regmap, &aw9523_regmap);
 }
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 6, 0)
 static int aw9523_probe(struct i2c_client *client)
-#else
-static int aw9523_probe(struct i2c_client *client,
-                       const struct i2c_device_id *id)
-#endif
 {
        struct device *dev = &client->dev;
        struct pinctrl_desc *pdesc;