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

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
...@@ -54,8 +54,6 @@ static int ts4800_gpio_probe(struct platform_device *pdev) ...@@ -54,8 +54,6 @@ static int ts4800_gpio_probe(struct platform_device *pdev)
return retval; return retval;
} }
chip->base = -1;
chip->label = dev_name(&pdev->dev);
chip->ngpio = ngpios; chip->ngpio = ngpios;
platform_set_drvdata(pdev, chip); platform_set_drvdata(pdev, chip);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment