fix warning about pinctrl-starfive-jh7110.c
authorjianlonghuang <jianlong.huang@starfivetech.com>
Fri, 6 May 2022 05:43:40 +0000 (13:43 +0800)
committerjianlonghuang <jianlong.huang@starfivetech.com>
Fri, 6 May 2022 05:43:40 +0000 (13:43 +0800)
Signed-off-by: jianlonghuang <jianlong.huang@starfivetech.com>
drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c

index 2aaf998..3351433 100644 (file)
@@ -808,15 +808,6 @@ static int starfive_gpio_child_to_parent_hwirq(struct gpio_chip *gc,
                                             unsigned int *parent,
                                             unsigned int *parent_type)
 {
-       struct starfive_pinctrl *chip;// = gpiochip_get_data(gc);
-       struct irq_data *d;// = irq_get_irq_data(chip->irq_parent[child]);
-
-#if 0
-       chip = gpiochip_get_data(gc);
-       d = irq_get_irq_data(chip->irq_parent[child]);
-       *parent_type = IRQ_TYPE_NONE;
-       *parent = irqd_to_hwirq(d);
-#endif
        return 0;
 }