提交 1a20cb2d 编写于 作者: L Laxman Dewangan

gpio: stp-xway: Use devm_gpiochip_add_data() for gpio registration

Use devm_gpiochip_add_data() for GPIO registration.
Signed-off-by: NLaxman Dewangan <ldewangan@nvidia.com>
上级 5fa734cc
...@@ -258,7 +258,7 @@ static int xway_stp_probe(struct platform_device *pdev) ...@@ -258,7 +258,7 @@ static int xway_stp_probe(struct platform_device *pdev)
ret = xway_stp_hw_init(chip); ret = xway_stp_hw_init(chip);
if (!ret) if (!ret)
ret = gpiochip_add_data(&chip->gc, chip); ret = devm_gpiochip_add_data(&pdev->dev, &chip->gc, chip);
if (!ret) if (!ret)
dev_info(&pdev->dev, "Init done\n"); dev_info(&pdev->dev, "Init done\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册