Skip to content

Commit

Permalink
gpio/mxc: remove redundant shadow variables initialization
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shawn Guo authored and Linus Walleij committed Aug 7, 2012
1 parent 7212157 commit f6b0ca2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/gpio/gpio-mxc.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,6 @@ static int __devinit mxc_gpio_probe(struct platform_device *pdev)

port->bgc.gc.to_irq = mxc_gpio_to_irq;
port->bgc.gc.base = pdev->id * 32;
port->bgc.dir = port->bgc.read_reg(port->bgc.reg_dir);
port->bgc.data = port->bgc.read_reg(port->bgc.reg_set);

err = gpiochip_add(&port->bgc.gc);
if (err)
Expand Down

0 comments on commit f6b0ca2

Please sign in to comment.