Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22d4ca35 authored by Axel Lin's avatar Axel Lin Committed by Linus Walleij
Browse files

gpio: ts4800: Drop redundant code to set already initialized gpio_chip fields



Both chip->base and chip->label are correctly set by bgpio_init().

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Tested-by: default avatarJulien Grossholtz <julien.grossholtz@savoirfairelinux.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent b178e7ea
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -54,8 +54,6 @@ static int ts4800_gpio_probe(struct platform_device *pdev)
		return retval;
	}

	chip->base = -1;
	chip->label = dev_name(&pdev->dev);
	chip->ngpio = ngpios;

	platform_set_drvdata(pdev, chip);