summaryrefslogtreecommitdiffstats
path: root/drivers/extcon
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2024-02-23 08:42:01 +0100
committerChanwoo Choi <cw00.choi@samsung.com>2024-05-08 18:03:38 +0200
commitb1a8804f532a67843e78e0fa37703947d13a68ba (patch)
tree6d31173a2e441a2353e9d5dcee316569946d440f /drivers/extcon
parentextcon: max8997: select IRQ_DOMAIN instead of depending on it (diff)
downloadlinux-b1a8804f532a67843e78e0fa37703947d13a68ba.tar.xz
linux-b1a8804f532a67843e78e0fa37703947d13a68ba.zip
extcon: intel-mrfld: Don't shadow error from devm_extcon_dev_allocate()
Don't shadow error from devm_extcon_dev_allocate() and return it as is. Link: https://lore.kernel.org/lkml/20231222161854.2955859-1-andriy.shevchenko@linux.intel.com/ Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/extcon')
-rw-r--r--drivers/extcon/extcon-intel-mrfld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/extcon/extcon-intel-mrfld.c b/drivers/extcon/extcon-intel-mrfld.c
index e96947fb76ee..718fe374f95d 100644
--- a/drivers/extcon/extcon-intel-mrfld.c
+++ b/drivers/extcon/extcon-intel-mrfld.c
@@ -214,7 +214,7 @@ static int mrfld_extcon_probe(struct platform_device *pdev)
data->edev = devm_extcon_dev_allocate(dev, mrfld_extcon_cable);
if (IS_ERR(data->edev))
- return -ENOMEM;
+ return PTR_ERR(data->edev);
ret = devm_extcon_dev_register(dev, data->edev);
if (ret < 0)