Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932536AbcDHG67 (ORCPT ); Fri, 8 Apr 2016 02:58:59 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:12826 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S932104AbcDHG65 (ORCPT ); Fri, 8 Apr 2016 02:58:57 -0400 From: Henry Chen To: Lee Jones CC: Matthias Brugger , John Crispin , Sascha Hauer , Flora Fu , , , , Henry Chen Subject: [PATCH v2 3/3] mfd: mt6397: check the EPROBE_DEFER from platform_get_irq. Date: Fri, 8 Apr 2016 14:58:49 +0800 Message-ID: <1460098729-25549-3-git-send-email-henryc.chen@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1460098729-25549-1-git-send-email-henryc.chen@mediatek.com> References: <1460098729-25549-1-git-send-email-henryc.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 614 Lines: 22 If get the -EPROBE_DEFER from platform_get_irq, it should return back directly. Signed-off-by: Henry Chen --- drivers/mfd/mt6397-core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c index 15050cb..b9b1e28 100644 --- a/drivers/mfd/mt6397-core.c +++ b/drivers/mfd/mt6397-core.c @@ -271,6 +271,8 @@ static int mt6397_probe(struct platform_device *pdev) } pmic->irq = platform_get_irq(pdev, 0); + if (pmic->irq == -EPROBE_DEFER) + return -EPROBE_DEFER; switch (id & 0xff) { case MT6323_CID_CODE: -- 1.8.1.1.dirty