mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 20:46:49 +07:00
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>
This commit is contained in:
parent
21c4a0c852
commit
dd06d41621
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user