mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue