gpio: bcm-kona: Drop unused pdev member in private data structure
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 18 Jul 2023 22:30:55 +0000 (01:30 +0300)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 19 Jul 2023 11:26:22 +0000 (13:26 +0200)
The pdev member is assigned and not used, drop it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-bcm-kona.c

index f67c0f7..5321ef9 100644 (file)
@@ -64,7 +64,6 @@ struct bcm_kona_gpio {
        struct gpio_chip gpio_chip;
        struct irq_domain *irq_domain;
        struct bcm_kona_gpio_bank *banks;
-       struct platform_device *pdev;
 };
 
 struct bcm_kona_gpio_bank {
@@ -591,7 +590,6 @@ static int bcm_kona_gpio_probe(struct platform_device *pdev)
        if (!kona_gpio->banks)
                return -ENOMEM;
 
-       kona_gpio->pdev = pdev;
        chip->parent = dev;
        chip->ngpio = kona_gpio->num_bank * GPIO_PER_BANK;