Merge tag 'iommu-fix-v5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/joro...
[linux-2.6-microblaze.git] / drivers / extcon / extcon-max77843.c
index e6b50ca..8e6e97e 100644 (file)
@@ -845,7 +845,7 @@ static int max77843_muic_probe(struct platform_device *pdev)
                        max77843_extcon_cable);
        if (IS_ERR(info->edev)) {
                dev_err(&pdev->dev, "Failed to allocate memory for extcon\n");
-               ret = -ENODEV;
+               ret = PTR_ERR(info->edev);
                goto err_muic_irq;
        }