Browse Source

gpio: ge: Use devm_gpiochip_add_data() for gpio registration

Use devm_gpiochip_add_data() for GPIO registration.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Laxman Dewangan 9 years ago
parent
commit
ad2261ca7b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/gpio/gpio-ge.c

+ 1 - 1
drivers/gpio/gpio-ge.c

@@ -89,7 +89,7 @@ static int __init gef_gpio_probe(struct platform_device *pdev)
 	gc->of_node = pdev->dev.of_node;
 	gc->of_node = pdev->dev.of_node;
 
 
 	/* This function adds a memory mapped GPIO chip */
 	/* This function adds a memory mapped GPIO chip */
-	ret = gpiochip_add_data(gc, NULL);
+	ret = devm_gpiochip_add_data(&pdev->dev, gc, NULL);
 	if (ret)
 	if (ret)
 		goto err0;
 		goto err0;