mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 04:42:04 -04:00
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>
This commit is contained in:
parent
5fa734ccf0
commit
1a20cb2d7d
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue