mfd: mt6397: Do not call irq_domain_remove if PMIC unsupported
[linux-2.6-microblaze.git] / drivers / mfd / mt6397-core.c
index 77b64bd..ab24e17 100644 (file)
@@ -329,8 +329,7 @@ static int mt6397_probe(struct platform_device *pdev)
 
        default:
                dev_err(&pdev->dev, "unsupported chip: %d\n", id);
-               ret = -ENODEV;
-               break;
+               return -ENODEV;
        }
 
        if (ret) {