Skip to contentSkip to conversation

gpio: da9052: remove a redundant assignment for gpio->da9052

PATCH Applied Axel Lin 2 participants 2 messages Jul 11, 2011 – Jul 15, 2011

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 gpio: da9052: remove a redundant assignment for gpio->da9052

We just set it twice in da9052_gpio_probe.

---
 drivers/gpio/gpio-da9052.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/gpio/gpio-da9052.c +0 -1
index c23761f..038f5eb 100644
@@ -219,7 +219,6 @@ static int __devinit da9052_gpio_probe(struct platform_device *pdev)
 	gpio->da9052 = dev_get_drvdata(pdev->dev.parent);
 	pdata = gpio->da9052->dev->platform_data;
 
-	gpio->da9052 = dev_get_drvdata(pdev->dev.parent);
 	gpio->gp = reference_gp;
 	if (pdata && pdata->gpio_base)
 		gpio->gp.base = pdata->gpio_base;
Signature · 1 line
1.7.4.1
Applied
#1 lore raw
Quoted 3 lines · Axel Lin

We just set it twice in da9052_gpio_probe.

Applied, thanks.

g.

Quoted 21 lines
---
 drivers/gpio/gpio-da9052.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/gpio/gpio-da9052.c +0 -1
index c23761f..038f5eb 100644
@@ -219,7 +219,6 @@ static int __devinit da9052_gpio_probe(struct platform_device *pdev)
 	gpio->da9052 = dev_get_drvdata(pdev->dev.parent);
 	pdata = gpio->da9052->dev->platform_data;
 
-	gpio->da9052 = dev_get_drvdata(pdev->dev.parent);
 	gpio->gp = reference_gp;
 	if (pdata && pdata->gpio_base)
 		gpio->gp.base = pdata->gpio_base;
Signature · 1 line
1.7.4.1