mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
ARM: omap1: drop unused variable from omap16xx_gpio_init()
The pdata variable is set but not used. Remove it. Reviewed-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Aaro Koskinen <aaro.koskinen@iki.fi> Link: https://patch.msgid.link/20260430-nokia770-gpio-swnodes-v7-1-c88f74c90dd6@oss.qualcomm.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
This commit is contained in:
parent
20de1f993e
commit
3288e99f99
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user