Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp373663imm; Thu, 21 Jun 2018 20:52:35 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJVPrT7JpugSvj2nsoRCNG/wrqSgTG4JoyHO7aiogq9XHiUgTOVmbxf91pWd/DwfSg7WA83 X-Received: by 2002:a62:ca99:: with SMTP id y25-v6mr29894783pfk.187.1529639555186; Thu, 21 Jun 2018 20:52:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529639555; cv=none; d=google.com; s=arc-20160816; b=UhmDFKUdNqGtdw3UM/gaMaDATDd5uQiT+n8vW99tb2MPtREhcy53Q7eZGS05/qUE8z yKWAwS1o4ye1O4plgA9tMjOFdxF4Nrm5gNBtjpS+fqA/OdQjZ1q3Ntj0VYjv7C9+/aUq pGH6xBARWdz2hrD/37oOA47UPytDh11KKpVi69hg9nMgvP9gO5uCcRKRIJRR0RV6/xuV gXdwbhGw6x10AT1UljmtVbDHNgbffwVS/jGfIpMbsPO20klqmKRFFhpQYwQOa7+sGkF5 9oT9xf6e5BXOBPmCTGmQWbzQl1TkXzVdSh2juExhWwIhb6tUj7CpsG50mMAzxcqEnmtJ aWWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=zWX6Nsqk5Iex7gOVCLmbVvCHUIASNgqprTurHKFeuJ0=; b=KpQe3DvR7U6csS5rLdsul4I9vPvb2vDYCuJEqSXLdqrYL0Fr0LamYqF5C3b0LJnFx4 OfVd6IzcotYYDiBc1nowyoxq9Ukeg0a7dk8Wyg/m9JZc3/WKCheiPtvGLznOLAJ4EyXR f+ePn1ihhXhSDUxCS6Vsm9ZJGwPIPWKstRcNT98Aq65QdVAWA/pPMBuHCmzmcEHUImEn U9HdVSKa8c4BpiJ+uEzZeVQbiEQCHzc7jav3G7NTdyJPhIEtpqr6T4B8Ftktjfo5Lvsp OBNtLCzqUwqDRSlKjyrOhsvRvfhwmm2ExV+M3r5hSxefIVEc0SOozT+qaWcuK8MzkUsL +23Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p9-v6si5342111pge.143.2018.06.21.20.52.21; Thu, 21 Jun 2018 20:52:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934392AbeFVDta (ORCPT + 99 others); Thu, 21 Jun 2018 23:49:30 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:24161 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S934345AbeFVDt0 (ORCPT ); Thu, 21 Jun 2018 23:49:26 -0400 X-UUID: ae54d3783d144c8680bd8d675313e484-20180622 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 144648032; Fri, 22 Jun 2018 11:49:16 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Fri, 22 Jun 2018 11:49:14 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Fri, 22 Jun 2018 11:49:14 +0800 From: To: , CC: , , , Sean Wang , Subject: [PATCH 1/7] pinctrl: mt7622: fix error path on failing at groups building Date: Fri, 22 Jun 2018 11:49:04 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Wang It should be to return an error code when failing at groups building. Cc: stable@vger.kernel.org Fixes: d6ed93551320 ("pinctrl: mediatek: add pinctrl driver for MT7622 SoC") Signed-off-by: Sean Wang --- drivers/pinctrl/mediatek/pinctrl-mt7622.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/mediatek/pinctrl-mt7622.c b/drivers/pinctrl/mediatek/pinctrl-mt7622.c index e3f1ab2..9ad8cb77 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mt7622.c +++ b/drivers/pinctrl/mediatek/pinctrl-mt7622.c @@ -1703,7 +1703,7 @@ static int mtk_pinctrl_probe(struct platform_device *pdev) err = mtk_build_groups(hw); if (err) { dev_err(&pdev->dev, "Failed to build groups\n"); - return 0; + return err; } /* Setup functions descriptions per SoC types */ -- 2.7.4