From: Bartosz Golaszewski Date: Thu, 30 Apr 2026 07:30:55 +0000 (+0200) Subject: ARM: omap1: drop unused variable from omap16xx_gpio_init() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3288e99f9968c37a8b654d5f4251382fe11bf854;p=thirdparty%2Fkernel%2Flinux.git ARM: omap1: drop unused variable from omap16xx_gpio_init() The pdata variable is set but not used. Remove it. Reviewed-by: Arnd Bergmann Acked-by: Aaro Koskinen Link: https://patch.msgid.link/20260430-nokia770-gpio-swnodes-v7-1-c88f74c90dd6@oss.qualcomm.com Signed-off-by: Bartosz Golaszewski --- diff --git a/arch/arm/mach-omap1/gpio16xx.c b/arch/arm/mach-omap1/gpio16xx.c index 55acec22fef4e..e8dbe173bd33f 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)) {