diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2016-02-22 17:43:28 +0530 |
---|---|---|
committer | Laxman Dewangan <ldewangan@nvidia.com> | 2016-02-23 20:35:31 +0530 |
commit | ad2261ca7b099b6b8163cdcb8c635a5b6fcaad52 (patch) | |
tree | 49d9d6f3d231aa0351d3fa254f14600bb4005785 /drivers/gpio/gpio-ge.c | |
parent | 330f4e561705b539ac5bba37ab576864c334c5ee (diff) | |
download | talos-obmc-linux-ad2261ca7b099b6b8163cdcb8c635a5b6fcaad52.tar.gz talos-obmc-linux-ad2261ca7b099b6b8163cdcb8c635a5b6fcaad52.zip |
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>
Diffstat (limited to 'drivers/gpio/gpio-ge.c')
-rw-r--r-- | drivers/gpio/gpio-ge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-ge.c b/drivers/gpio/gpio-ge.c index cbbec838a9d1..8650b2916f87 100644 --- a/drivers/gpio/gpio-ge.c +++ b/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; /* 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) goto err0; |