projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea6a95d
)
extcon: max14577: Return error code of extcon_dev_allocate()
author
Krzysztof Kozlowski
<krzk@kernel.org>
Sat, 29 Aug 2020 12:43:53 +0000
(14:43 +0200)
committer
Chanwoo Choi
<cw00.choi@samsung.com>
Thu, 24 Sep 2020 10:20:49 +0000
(19:20 +0900)
devm_extcon_dev_allocate() can fail of multiple reasons. The call
returns proper error code on failure so pass it instead of fixed ENOMEM.
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-max14577.c
patch
|
blob
|
history
diff --git
a/drivers/extcon/extcon-max14577.c
b/drivers/extcon/extcon-max14577.c
index cc47d626095c9d026515ca4fd83ac1f01828f573..ace523924e58c68d65a3fefcf087d11f7dd5d2e6 100644
(file)
--- a/
drivers/extcon/extcon-max14577.c
+++ b/
drivers/extcon/extcon-max14577.c
@@
-713,7
+713,7
@@
static int max14577_muic_probe(struct platform_device *pdev)
max14577_extcon_cable);
if (IS_ERR(info->edev)) {
dev_err(&pdev->dev, "failed to allocate memory for extcon\n");
- return
-ENOMEM
;
+ return
PTR_ERR(info->edev)
;
}
ret = devm_extcon_dev_register(&pdev->dev, info->edev);