提交 22d4ca35 编写于 作者: A Axel Lin 提交者: 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: NAxel Lin <axel.lin@ingics.com>
Tested-by: NJulien Grossholtz <julien.grossholtz@savoirfairelinux.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 b178e7ea
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册