Commit 9804456e authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Bartosz Golaszewski

gpio: Remove unused local OF node pointers

After the commit 448cf905 ("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: 448cf905 ("gpio: Get rid of duplicate of_node assignment in the drivers")
Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
[Bart: removed unrelated change in gpio-brcmstb]
Signed-off-by: default avatarBartosz Golaszewski <brgl@bgdev.pl>
parent a2d05fb7
...@@ -71,7 +71,6 @@ static int gw_pld_probe(struct i2c_client *client, ...@@ -71,7 +71,6 @@ static int gw_pld_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
struct device *dev = &client->dev; struct device *dev = &client->dev;
struct device_node *np = dev->of_node;
struct gw_pld *gw; struct gw_pld *gw;
int ret; int ret;
......
...@@ -205,8 +205,7 @@ mediatek_gpio_xlate(struct gpio_chip *chip, ...@@ -205,8 +205,7 @@ mediatek_gpio_xlate(struct gpio_chip *chip,
} }
static int static int
mediatek_gpio_bank_probe(struct device *dev, mediatek_gpio_bank_probe(struct device *dev, int bank)
struct device_node *node, int bank)
{ {
struct mtk *mtk = dev_get_drvdata(dev); struct mtk *mtk = dev_get_drvdata(dev);
struct mtk_gc *rg; struct mtk_gc *rg;
...@@ -310,7 +309,7 @@ mediatek_gpio_probe(struct platform_device *pdev) ...@@ -310,7 +309,7 @@ mediatek_gpio_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, mtk); platform_set_drvdata(pdev, mtk);
for (i = 0; i < MTK_BANK_CNT; i++) { for (i = 0; i < MTK_BANK_CNT; i++) {
ret = mediatek_gpio_bank_probe(dev, np, i); ret = mediatek_gpio_bank_probe(dev, i);
if (ret) if (ret)
return ret; return ret;
} }
......
...@@ -197,7 +197,6 @@ static void rda_gpio_irq_handler(struct irq_desc *desc) ...@@ -197,7 +197,6 @@ static void rda_gpio_irq_handler(struct irq_desc *desc)
static int rda_gpio_probe(struct platform_device *pdev) static int rda_gpio_probe(struct platform_device *pdev)
{ {
struct device_node *np = pdev->dev.of_node;
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct gpio_irq_chip *girq; struct gpio_irq_chip *girq;
struct rda_gpio *rda_gpio; struct rda_gpio *rda_gpio;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment