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:43 +0530 |
commit | 1a20cb2d7da02d13888fb3bd8a5dc7b2a8be3181 (patch) | |
tree | d8002ab68f7b8c25a93684f1553a4f3d4768e2b2 | |
parent | 5fa734ccf06949182ae1835bcf926fdde51def22 (diff) | |
download | linux-1a20cb2d7da02d13888fb3bd8a5dc7b2a8be3181.tar.gz linux-1a20cb2d7da02d13888fb3bd8a5dc7b2a8be3181.tar.bz2 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>
-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"); |