Skip to content

Commit

Permalink
gpio/da9052: remove a redundant assignment for gpio->da9052
Browse files Browse the repository at this point in the history
We just set it twice in da9052_gpio_probe.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
  • Loading branch information
Axel Lin authored and Grant Likely committed Jul 14, 2011
1 parent 8937cb6 commit cd27918
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/gpio/gpio-da9052.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cd27918

Please sign in to comment.