Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b4acf3a authored by Laxman Dewangan's avatar Laxman Dewangan
Browse files

gpio: tegra: Use devm_gpiochip_add_data() for gpio registration



Use devm_gpiochip_add_data() for GPIO registration.

Signed-off-by: default avatarLaxman Dewangan <ldewangan@nvidia.com>
Cc: Stephen Warren <swarren@wwwdotorg.org>
Cc: Thierry Reding <thierry.reding@gmail.com>
parent f3378b6a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -545,7 +545,7 @@ static int tegra_gpio_probe(struct platform_device *pdev)


	tegra_gpio_chip.of_node = pdev->dev.of_node;
	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) {
	if (ret < 0) {
		irq_domain_remove(irq_domain);
		irq_domain_remove(irq_domain);
		return ret;
		return ret;