summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-ts4800.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2016-02-20 14:22:46 +0800
committerLinus Walleij <linus.walleij@linaro.org>2016-02-25 10:51:42 +0100
commitdd06d416216ba8eb106e7e175a7e3cd8964b07e3 (patch)
treec16ea072069d45bcb0b97fe79c663bcadad888a4 /drivers/gpio/gpio-ts4800.c
parent21c4a0c852655a6062d87a385467b125be964f60 (diff)
downloadlinux-dd06d416216ba8eb106e7e175a7e3cd8964b07e3.tar.bz2
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 <axel.lin@ingics.com> Tested-by: Julien Grossholtz <julien.grossholtz@savoirfairelinux.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-ts4800.c')
-rw-r--r--drivers/gpio/gpio-ts4800.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-ts4800.c b/drivers/gpio/gpio-ts4800.c
index 9da79e4a67c5..147824554253 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);