extcon: extcon_gpio: Replace gpio_request_one by devm_gpio_request_one
PATCH 1/1 extcon: extcon_gpio: Replace gpio_request_one by devm_gpio_request_one
commit 01eaf24 "extcon: Convert extcon_gpio to devm_gpio_request_one" missed the replacement for devm_gpio_request_one. fix it.
Signed-off-by Axel Lin <[email protected]>
--- drivers/extcon/extcon_gpio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/extcon/extcon_gpio.c +2 -1
@@ -107,7 +107,8 @@ static int __devinit gpio_extcon_probe(struct platform_device *pdev)if (ret <0 )return ret; - ret =gpio_request_one (extcon_data->gpio,GPIOF_DIR_IN , pdev->name); + ret =devm_gpio_request_one (&pdev->dev, extcon_data->gpio,GPIOF_DIR_IN , + pdev->name);if (ret <0 ) goto err;
Signature · 1 line
1.7.9.5
Chanwoo Choi
maintainerQuoted 13 lines · Axel Lin
commit 01eaf24 "extcon: Convert
extcon_gpiotodevm_gpio_request_one" missed the replacement fordevm_gpio_request_one. fix it.Signed-off-by Axel Lin <[email protected]>--- drivers/extcon/extcon_gpio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/extcon/extcon_gpio.c +0
-0
drivers/extcon/extcon_gpio.c static int __devinit gpio_extcon_probe(struct platform_device *pdev) · line 114
Quoted 9 lines
drivers/extcon/extcon_gpio.c +2
-1@@ -107,7 +107,8 @@ static int __devinit gpio_extcon_probe(struct platform_device *pdev)if (ret <0 )return ret; - ret =gpio_request_one (extcon_data->gpio,GPIOF_DIR_IN , pdev->name); + ret =devm_gpio_request_one (&pdev->dev, extcon_data->gpio,GPIOF_DIR_IN , + pdev->name);if (ret <0 ) goto err;
It is right.
Signed-off-by Chanwoo Choi <[email protected]>
Thank you,
Chanwoo Choi