diff mbox series

[v3,3/3] gpio: bcm-kona: Drop unused pdev member in private data structure

Message ID 20230718223055.2809-3-andriy.shevchenko@linux.intel.com
State Accepted
Commit 91093b57ee3b2080a1f30895f862690f8d794161
Headers show
Series [v3,1/3] gpio: bcm-kona: Make driver OF-independent | expand

Commit Message

Andy Shevchenko July 18, 2023, 10:30 p.m. UTC
The pdev member is assigned and not used, drop it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
v2: new patch
v3: no changes
 drivers/gpio/gpio-bcm-kona.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/gpio/gpio-bcm-kona.c b/drivers/gpio/gpio-bcm-kona.c
index f67c0f76a196..5321ef98f442 100644
--- a/drivers/gpio/gpio-bcm-kona.c
+++ b/drivers/gpio/gpio-bcm-kona.c
@@ -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;