gpio: aspeed: remove duplicated statement
authorTao Ren <taoren@fb.com>
Wed, 12 Dec 2018 21:53:05 +0000 (13:53 -0800)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 21 Dec 2018 10:14:11 +0000 (11:14 +0100)
Remove duplicated assignment statement from aspeed_gpio_probe() function.

Signed-off-by: Tao Ren <taoren@fb.com>
Acked-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-aspeed.c

index 2342e154029b0ad3aa7a849ec1d981a1e33d9e2b..854bce4fb9e7209b2697e9c662e65e4456c969c3 100644 (file)
@@ -1185,7 +1185,6 @@ static int __init aspeed_gpio_probe(struct platform_device *pdev)
 
        gpio->chip.parent = &pdev->dev;
        gpio->chip.ngpio = gpio->config->nr_gpios;
-       gpio->chip.parent = &pdev->dev;
        gpio->chip.direction_input = aspeed_gpio_dir_in;
        gpio->chip.direction_output = aspeed_gpio_dir_out;
        gpio->chip.get_direction = aspeed_gpio_get_direction;