Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2836345ybi; Sun, 9 Jun 2019 22:35:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqxC8Jl1vdCMHbva43JfbD6QyOjEz+3e4uj0yF+JkK0upXE3bIf5IhyGYwQUVVETHtBn3A8I X-Received: by 2002:a17:90a:1b4c:: with SMTP id q70mr18946124pjq.69.1560144921116; 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=ycVvLQvkKDq12HF9Tyea1jsdlvA4NUj6HVb2YoxB0XWGvdJO628gmf0A9sQZx82kaS UeG5qvkkWM/z+nuSbJkJqlU9514lydICua7ke2e/sYE1JFSL0cHvsV9WNcE5KlFMHD90 5zHrq73eiQ/kF818xfi9XtYaMi/VgdtbSxZD0Dy3MSKPVMF3RhLUzOgUygqEDxlyFRBJ 70GvMd7uvcGByzu99t5+jjh6k3GoY6zgAKdFFvOGH06tDjArZdl0HrXx4Jo/gomByyVt fvcS7fMMjsEGL6Ld3Z9l12LeOwE8br8D2sgWIPf2cZ13PXGnF2z6sOySZukmx8vLehwW MHPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=ljlA0ni00EpsFy0Xh176W+JLJ74dxvRgf9kiSDbkTKY=; b=BExx01aUPriUAIxq5SoFK8WAz8YhtW5Km/IIwudPzZpcdejbQWygbrqNSWhEsGmMmI ytJFCAwk0EnlRqyx2JmT4U2B1yXXvO3ZGNNHKZ+vnH64Y6FMTfpmBSvUoZnqTYXlXYw7 YPUBLHmYxjZUfZ5NhXlgyJ6nWgBdstKFlveq8XxGdk5u1N1bJl+eymYBUq20mRRf41tP LWNpguhnVIoQBNwpe29W0kcc6zxm/cQLs0zaB3WCSUUDQVRUd4GHbmBIG4IKRaymzYv5 dvMnsGRXF3HAa6pMe892c8RyGNjxWttYHXe0eTpE74fFM2dNQWtpfnKIqJ+TEVc9K7Fm pnmw== 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 v65si9598991pfb.77.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 S2387581AbfFJFez (ORCPT + 99 others); Mon, 10 Jun 2019 01:34:55 -0400 Received: from inva021.nxp.com ([92.121.34.21]:35512 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387524AbfFJFey (ORCPT ); Mon, 10 Jun 2019 01:34:54 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 283922006F3; Mon, 10 Jun 2019 07:34:53 +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 A95312006ED; Mon, 10 Jun 2019 07:34:46 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 78C39402D2; Mon, 10 Jun 2019 13:34:38 +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 1/2] clk: imx: Remove __init for imx_check_clocks() API Date: Mon, 10 Jun 2019 13:36:33 +0800 Message-Id: <20190610053634.14339-1-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.17.1 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 Some of i.MX SoCs' clock driver use platform driver model, and they need to call imx_check_clocks() API, so imx_check_clocks() API should NOT be in .init section. Signed-off-by: Anson Huang --- drivers/clk/imx/clk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk.c b/drivers/clk/imx/clk.c index 9cd7097..b1416b2 100644 --- a/drivers/clk/imx/clk.c +++ b/drivers/clk/imx/clk.c @@ -23,7 +23,7 @@ void __init imx_mmdc_mask_handshake(void __iomem *ccm_base, writel_relaxed(reg, ccm_base + CCM_CCDR); } -void __init imx_check_clocks(struct clk *clks[], unsigned int count) +void imx_check_clocks(struct clk *clks[], unsigned int count) { unsigned i; -- 2.7.4