Commit cd27918d authored by Axel Lin's avatar Axel Lin Committed by Grant Likely

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

We just set it twice in da9052_gpio_probe.
Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 8937cb60
...@@ -219,7 +219,6 @@ static int __devinit da9052_gpio_probe(struct platform_device *pdev) ...@@ -219,7 +219,6 @@ static int __devinit da9052_gpio_probe(struct platform_device *pdev)
gpio->da9052 = dev_get_drvdata(pdev->dev.parent); gpio->da9052 = dev_get_drvdata(pdev->dev.parent);
pdata = gpio->da9052->dev->platform_data; pdata = gpio->da9052->dev->platform_data;
gpio->da9052 = dev_get_drvdata(pdev->dev.parent);
gpio->gp = reference_gp; gpio->gp = reference_gp;
if (pdata && pdata->gpio_base) if (pdata && pdata->gpio_base)
gpio->gp.base = pdata->gpio_base; gpio->gp.base = pdata->gpio_base;
......
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