提交 33bde5c5 编写于 作者: L Laxman Dewangan

gpio: moxart: Use devm_gpiochip_add_data() for gpio registration

Use devm_gpiochip_add_data() for GPIO registration.
Signed-off-by: NLaxman Dewangan <ldewangan@nvidia.com>
上级 7d645df0
...@@ -63,7 +63,7 @@ static int moxart_gpio_probe(struct platform_device *pdev) ...@@ -63,7 +63,7 @@ static int moxart_gpio_probe(struct platform_device *pdev)
gc->parent = dev; gc->parent = dev;
gc->owner = THIS_MODULE; gc->owner = THIS_MODULE;
ret = gpiochip_add_data(gc, NULL); ret = devm_gpiochip_add_data(dev, gc, NULL);
if (ret) { if (ret) {
dev_err(dev, "%s: gpiochip_add failed\n", dev_err(dev, "%s: gpiochip_add failed\n",
dev->of_node->full_name); dev->of_node->full_name);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册