diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-08-05 02:01:25 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-08-07 02:43:26 -0400 |
commit | f6b0ca25ee402f714487b31c35f8e11f2bf4310b (patch) | |
tree | f3cd7ca0f4ab449bfb479a85eabdc771080448dd /drivers/gpio/gpio-mxc.c | |
parent | 72121572670973bec6fb1b9fdb454b106b253235 (diff) |
gpio/mxc: remove redundant shadow variables initialization
With commit 3e11f7b (gpio/generic: initialize basic_mmio_gpio shadow
variables properly) in place, the shadow variables initialization is
being done in generic driver bgpio_init call.
Remove the redundant shadow variables initialization from gpio-mxc
driver.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Dirk Behme <dirk.behme@de.bosch.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-mxc.c')
-rw-r--r-- | drivers/gpio/gpio-mxc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c index 4db460b6ecf7..76e8cda9c06f 100644 --- a/drivers/gpio/gpio-mxc.c +++ b/drivers/gpio/gpio-mxc.c | |||
@@ -466,8 +466,6 @@ static int __devinit mxc_gpio_probe(struct platform_device *pdev) | |||
466 | 466 | ||
467 | port->bgc.gc.to_irq = mxc_gpio_to_irq; | 467 | port->bgc.gc.to_irq = mxc_gpio_to_irq; |
468 | port->bgc.gc.base = pdev->id * 32; | 468 | port->bgc.gc.base = pdev->id * 32; |
469 | port->bgc.dir = port->bgc.read_reg(port->bgc.reg_dir); | ||
470 | port->bgc.data = port->bgc.read_reg(port->bgc.reg_set); | ||
471 | 469 | ||
472 | err = gpiochip_add(&port->bgc.gc); | 470 | err = gpiochip_add(&port->bgc.gc); |
473 | if (err) | 471 | if (err) |