diff options
author | Axel Lin <axel.lin@ingics.com> | 2016-02-20 09:22:46 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-02-25 17:20:44 +0300 |
commit | 22d4ca3522f4d14dda71558e1704e80e3d466bc8 (patch) | |
tree | ef08f5c6c769287162c46a73a4fbc0a62a83c800 /drivers | |
parent | b178e7ead0cd111d9cb776a2a12abf953e50c2e8 (diff) | |
download | linux-22d4ca3522f4d14dda71558e1704e80e3d466bc8.tar.xz |
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')
-rw-r--r-- | drivers/gpio/gpio-ts4800.c | 2 |
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); |