mirror of
https://github.com/torvalds/linux.git
synced 2024-12-05 10:32:35 +00:00
gpio: moxart: Use devm_gpiochip_add_data() for gpio registration
Use devm_gpiochip_add_data() for GPIO registration. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
This commit is contained in:
parent
7d645df05a
commit
33bde5c503
@ -63,7 +63,7 @@ static int moxart_gpio_probe(struct platform_device *pdev)
|
||||
gc->parent = dev;
|
||||
gc->owner = THIS_MODULE;
|
||||
|
||||
ret = gpiochip_add_data(gc, NULL);
|
||||
ret = devm_gpiochip_add_data(dev, gc, NULL);
|
||||
if (ret) {
|
||||
dev_err(dev, "%s: gpiochip_add failed\n",
|
||||
dev->of_node->full_name);
|
||||
|
Loading…
Reference in New Issue
Block a user