[PATCH v6 1/3] ARM: omap1: drop unused variable from omap16xx_gpio_init()

Bartosz Golaszewski
2026-04-27T10:46:57Z

The pdata variable is set but not used. Remove it.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
arch/arm/mach-omap1/gpio16xx.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/arch/arm/mach-omap1/gpio16xx.c b/arch/arm/mach-omap1/gpio16xx.c
index 55acec22fef4e73f20935473602ef6cb2f4f379c..e8dbe173bd33fae72c7c884f930a530f78096839 100644
--- a/arch/arm/mach-omap1/gpio16xx.c
+++ b/arch/arm/mach-omap1/gpio16xx.c
@@ -212,7 +212,6 @@ static int __init omap16xx_gpio_init(void)
void __iomem *base;
struct resource *res;
struct platform_device *pdev;
- struct omap_gpio_platform_data *pdata;

if (!cpu_is_omap16xx())
return -EINVAL;
@@ -226,7 +225,6 @@ static int __init omap16xx_gpio_init(void)

for (i = 0; i < ARRAY_SIZE(omap16xx_gpio_dev); i++) {
pdev = omap16xx_gpio_dev[i];
- pdata = pdev->dev.platform_data;

res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (unlikely(!res)) {

--
2.47.3