From: Axel Lin Date: Sat, 20 Feb 2016 06:22:46 +0000 (+0800) Subject: gpio: ts4800: Drop redundant code to set already initialized gpio_chip fields X-Git-Tag: v4.6-rc1~108^2~20^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dd06d416216ba8eb106e7e175a7e3cd8964b07e3;p=thirdparty%2Fkernel%2Flinux.git 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: Axel Lin Tested-by: Julien Grossholtz Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-ts4800.c b/drivers/gpio/gpio-ts4800.c index 9da79e4a67c5a..1478245542537 100644 --- a/drivers/gpio/gpio-ts4800.c +++ b/drivers/gpio/gpio-ts4800.c @@ -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);