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

gpio: Remove unused local OF node pointers

After the commit 448cf90513d9 ("gpio: Get rid of duplicate of_node
assignment in the drivers") the OF node local pointers become unused.
Remove them for good and make compiler happy about.

Fixes: 448cf90513d9 ("gpio: Get rid of duplicate of_node assignment in the drivers")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
[Bart: removed unrelated change in gpio-brcmstb]
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>

authored by

Andy Shevchenko and committed by
Bartosz Golaszewski
9804456e a2d05fb7

+2 -5
-1
drivers/gpio/gpio-gw-pld.c
··· 71 71 const struct i2c_device_id *id) 72 72 { 73 73 struct device *dev = &client->dev; 74 - struct device_node *np = dev->of_node; 75 74 struct gw_pld *gw; 76 75 int ret; 77 76
+2 -3
drivers/gpio/gpio-mt7621.c
··· 205 205 } 206 206 207 207 static int 208 - mediatek_gpio_bank_probe(struct device *dev, 209 - struct device_node *node, int bank) 208 + mediatek_gpio_bank_probe(struct device *dev, int bank) 210 209 { 211 210 struct mtk *mtk = dev_get_drvdata(dev); 212 211 struct mtk_gc *rg; ··· 309 310 platform_set_drvdata(pdev, mtk); 310 311 311 312 for (i = 0; i < MTK_BANK_CNT; i++) { 312 - ret = mediatek_gpio_bank_probe(dev, np, i); 313 + ret = mediatek_gpio_bank_probe(dev, i); 313 314 if (ret) 314 315 return ret; 315 316 }
-1
drivers/gpio/gpio-rda.c
··· 197 197 198 198 static int rda_gpio_probe(struct platform_device *pdev) 199 199 { 200 - struct device_node *np = pdev->dev.of_node; 201 200 struct device *dev = &pdev->dev; 202 201 struct gpio_irq_chip *girq; 203 202 struct rda_gpio *rda_gpio;