Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2836348ybi; Sun, 9 Jun 2019 22:35:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3qoNXWCAHwW8Nb+B+2oGLOhJ7r0r/clQ6/dEHQarpKxjBfdAVVcG4F22dIfPlp9t36G/m X-Received: by 2002:a17:90a:db44:: with SMTP id u4mr19438093pjx.52.1560144921160; Sun, 09 Jun 2019 22:35:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560144921; cv=none; d=google.com; s=arc-20160816; b=VeCF5WXdeZCro+C6+bmwuUnqs/UVC4SshGBd3Mk5iaFFsHkS1kXSB26FZJU/ye4HLO X2mr0YJRa/4C1PfmHv2LB7DbA1Hyr6KtA0LW13pLL8r2T/oUAJTcEpHAQT41yuV2fQ3+ cOUgmyJWHbSFDXOMzhr49Z/7z698+vUMDlZuSUTc1Dj1zPz57hKydBIiUWKouKEHco67 d0VYvg3umMEoVPM6CVXRkob4TxwAyskB8vrJ+4Zlz222Xw0jUy3mweN3HiRCXrhUuwL4 H32iYgdTjx43bErrCyMA/FW4qAgaNW+92gcOLFFDmfG+Pr4CpQQXquVEZAlZjAhEFOtg wlFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=vlhfa2nkPt7cLFp8zr5q4WJU8B1W3B3ibRg+gO4FsRo=; b=I/Z/JeKtWi4yiTc74QEBWjYKQRAJcO0e+/1dYlKGZhZp2AIUPT6Q4JXCyzozBHR6lN lSCzQBZdRhDd+R5JV/llRkxXIrGNZRt4BZ+CHwIIS0vxEuRtxipj7hcVhjUMDE+362xw gpJe6dWOD9NOX8xHtDvObUW2e7GaJOtyUKxJXJ+1ahkr+laxn2TaGgvJnQyWPZrmDPtY toPNPuekwXjP+0zam+XfJPzoyAgWSNH0ZeKbFxkT0fKA50VneoCmk5yN2AVpcWGn+1Uv NAhiQaNUjV6Jz/hL+FqVDPfOFIwGyjPtGAWDG/Ac8uFx4+6yzg7DhNTNrfSZo5oQJRsx kXWQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c128si9788777pfa.221.2019.06.09.22.35.04; Sun, 09 Jun 2019 22:35:21 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387614AbfFJFe6 (ORCPT + 99 others); Mon, 10 Jun 2019 01:34:58 -0400 Received: from inva021.nxp.com ([92.121.34.21]:35540 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387528AbfFJFe4 (ORCPT ); Mon, 10 Jun 2019 01:34:56 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 988682006ED; Mon, 10 Jun 2019 07:34:54 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 283522006F6; Mon, 10 Jun 2019 07:34:48 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id E8E1440310; Mon, 10 Jun 2019 13:34:39 +0800 (SGT) From: Anson.Huang@nxp.com To: mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, abel.vesa@nxp.com, l.stach@pengutronix.de, ccaione@baylibre.com, leonard.crestez@nxp.com, aisheng.dong@nxp.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH 2/2] clk: imx8mq: Use imx_check_clocks() API directly Date: Mon, 10 Jun 2019 13:36:34 +0800 Message-Id: <20190610053634.14339-2-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190610053634.14339-1-Anson.Huang@nxp.com> References: <20190610053634.14339-1-Anson.Huang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anson Huang Use imx_check_clocks() API to check clocks directly. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx8mq.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c index 7da1edb..5fbc2a7 100644 --- a/drivers/clk/imx/clk-imx8mq.c +++ b/drivers/clk/imx/clk-imx8mq.c @@ -278,7 +278,6 @@ static int imx8mq_clocks_probe(struct platform_device *pdev) struct device_node *np = dev->of_node; void __iomem *base; int err; - int i; clks[IMX8MQ_CLK_DUMMY] = imx_clk_fixed("dummy", 0); clks[IMX8MQ_CLK_32K] = of_clk_get_by_name(np, "ckil"); @@ -548,10 +547,7 @@ static int imx8mq_clocks_probe(struct platform_device *pdev) clks[IMX8MQ_ARM_PLL_OUT], clks[IMX8MQ_SYS1_PLL_800M]); - for (i = 0; i < IMX8MQ_CLK_END; i++) - if (IS_ERR(clks[i])) - pr_err("i.MX8mq clk %u register failed with %ld\n", - i, PTR_ERR(clks[i])); + imx_check_clocks(clks, ARRAY_SIZE(clks)); clk_data.clks = clks; clk_data.clk_num = ARRAY_SIZE(clks); -- 2.7.4