Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: amd: Drop unused pdev pointer in privata data

The pointer to the struct platform_device in the driver's private
data struct is never used and therefore can be dropped.

Signed-off-by: Enrico Weigelt <info@metux.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Enrico Weigelt and committed by
Linus Walleij
a1000673 4892d3a6

-2
-2
drivers/gpio/gpio-amd-fch.c
··· 32 32 "amd-fch-gpio-iomem"); 33 33 34 34 struct amd_fch_gpio_priv { 35 - struct platform_device *pdev; 36 35 struct gpio_chip gc; 37 36 void __iomem *base; 38 37 struct amd_fch_gpio_pdata *pdata; ··· 152 153 return -ENOMEM; 153 154 154 155 priv->pdata = pdata; 155 - priv->pdev = pdev; 156 156 157 157 priv->gc.owner = THIS_MODULE; 158 158 priv->gc.parent = &pdev->dev;