Skip to contentSkip to conversation

gpio: aspeed: remove duplicated statement

PATCH In review Tao Ren 3 participants 3 messages Dec 12, 2018 – Dec 21, 2018

Subsystems (2)
lore
Share & tools
lore

Tao Ren

author
#0 lore raw

PATCH 1/1 gpio: aspeed: remove duplicated statement

Remove duplicated assignment statement from aspeed_gpio_probe() function.

---
 drivers/gpio/gpio-aspeed.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpio/gpio-aspeed.c +0 -1
index 2342e154029b..854bce4fb9e7 100644
@@ -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;
Signature · 1 line
2.17.1