gpio: tegra: Use devm_gpiochip_add_data() for gpio registration
Use devm_gpiochip_add_data() for GPIO registration. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Cc: Stephen Warren <swarren@wwwdotorg.org> Cc: Thierry Reding <thierry.reding@gmail.com>
This commit is contained in:
parent
f3378b6a26
commit
8b4acf3a9b
@ -545,7 +545,7 @@ static int tegra_gpio_probe(struct platform_device *pdev)
|
||||
|
||||
tegra_gpio_chip.of_node = pdev->dev.of_node;
|
||||
|
||||
ret = gpiochip_add_data(&tegra_gpio_chip, NULL);
|
||||
ret = devm_gpiochip_add_data(&pdev->dev, &tegra_gpio_chip, NULL);
|
||||
if (ret < 0) {
|
||||
irq_domain_remove(irq_domain);
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user