Skip to content

Commit a100067

Browse files
metuxLinus Walleij
authored andcommitted
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>
1 parent 4892d3a commit a100067

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎drivers/gpio/gpio-amd-fch.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ static struct resource amd_fch_gpio_iores =
3232
"amd-fch-gpio-iomem");
3333

3434
struct amd_fch_gpio_priv {
35-
struct platform_device *pdev;
3635
struct gpio_chip gc;
3736
void __iomem *base;
3837
struct amd_fch_gpio_pdata *pdata;
@@ -153,7 +152,6 @@ static int amd_fch_gpio_probe(struct platform_device *pdev)
153152
return -ENOMEM;
154153

155154
priv->pdata = pdata;
156-
priv->pdev = pdev;
157155

158156
priv->gc.owner = THIS_MODULE;
159157
priv->gc.parent = &pdev->dev;

0 commit comments

Comments
 (0)