diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-07-10 20:53:38 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-07-13 23:41:53 -0400 |
commit | cd27918dc9d2b730fbb898ff075d4fbfb7f674aa (patch) | |
tree | 60224f37fad7676d40a83a08c86eba54e0d81cbe /drivers/gpio/gpio-da9052.c | |
parent | 8937cb602bea120248cef64961fc46836a394c8a (diff) |
gpio/da9052: remove a redundant assignment for gpio->da9052
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>
Diffstat (limited to 'drivers/gpio/gpio-da9052.c')
-rw-r--r-- | drivers/gpio/gpio-da9052.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-da9052.c b/drivers/gpio/gpio-da9052.c index c23761f42199..038f5eb8b13d 100644 --- a/drivers/gpio/gpio-da9052.c +++ b/drivers/gpio/gpio-da9052.c | |||
@@ -219,7 +219,6 @@ static int __devinit da9052_gpio_probe(struct platform_device *pdev) | |||
219 | gpio->da9052 = dev_get_drvdata(pdev->dev.parent); | 219 | gpio->da9052 = dev_get_drvdata(pdev->dev.parent); |
220 | pdata = gpio->da9052->dev->platform_data; | 220 | pdata = gpio->da9052->dev->platform_data; |
221 | 221 | ||
222 | gpio->da9052 = dev_get_drvdata(pdev->dev.parent); | ||
223 | gpio->gp = reference_gp; | 222 | gpio->gp = reference_gp; |
224 | if (pdata && pdata->gpio_base) | 223 | if (pdata && pdata->gpio_base) |
225 | gpio->gp.base = pdata->gpio_base; | 224 | gpio->gp.base = pdata->gpio_base; |