diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2016-02-22 13:13:28 +0100 |
---|---|---|
committer | Laxman Dewangan <ldewangan@nvidia.com> | 2016-02-23 16:05:43 +0100 |
commit | 1a20cb2d7da02d13888fb3bd8a5dc7b2a8be3181 (patch) | |
tree | d8002ab68f7b8c25a93684f1553a4f3d4768e2b2 /drivers | |
parent | gpio: sta2x11: Use devm_gpiochip_add_data() for gpio registration (diff) | |
download | linux-1a20cb2d7da02d13888fb3bd8a5dc7b2a8be3181.tar.xz linux-1a20cb2d7da02d13888fb3bd8a5dc7b2a8be3181.zip |
gpio: stp-xway: 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')
-rw-r--r-- | drivers/gpio/gpio-stp-xway.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-stp-xway.c b/drivers/gpio/gpio-stp-xway.c index d11dd48570b2..19e654f88b3a 100644 --- a/drivers/gpio/gpio-stp-xway.c +++ b/drivers/gpio/gpio-stp-xway.c @@ -258,7 +258,7 @@ static int xway_stp_probe(struct platform_device *pdev) ret = xway_stp_hw_init(chip); if (!ret) - ret = gpiochip_add_data(&chip->gc, chip); + ret = devm_gpiochip_add_data(&pdev->dev, &chip->gc, chip); if (!ret) dev_info(&pdev->dev, "Init done\n"); |