Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp348763ybi; Wed, 19 Jun 2019 00:11:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyYrhIZGXig2vPJ5UmFT+IFmaUK7ryE03M86JuoO0BrbUVw/CZ+bqkB4j6RQD+ePSmOV7d+ X-Received: by 2002:a17:90a:9905:: with SMTP id b5mr9821041pjp.70.1560928285670; Wed, 19 Jun 2019 00:11:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560928285; cv=none; d=google.com; s=arc-20160816; b=WZTR9//kPNRTD+pyY6zNuDWRkN0RTdxrMItQ1GuTb/xty+4LmMnH3GcIlFEHmfDgHM 3AbzSiVuD8xPh3NCH2ORNmQqDk17HFsqjmTI8Cbg4V5t092H81oXonU570ltTp9dr+IO CBG3SmYZFhUglyzTER8rdEdeqeFR4jhNB0ILAq83aN6dM/p2Zkyd5fV554qVzy3/bCQ5 RSbCI5KR3rqEa5VEpd3OZWEwaFkaC9AwZDeQNCk7wicG50Qh1+3hpDfbH3RO+Y7p3KRG +T0M5RTAhg+3KaVYFAM1pMxPiraR7/7O7rI4249aXN1aPkismS+CnNWlnfnkzevCiwVX aBlA== 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=Z2XEGCunhcQaF2ykoqg5bzopVk3hlw8V9Q1v9YTb71s=; b=DvNLTuHE8UwM60e0iSu8yfD6WExBQJD4bQ1cmDRKOdskLpJ4dEgp+iPFRwMAhEK80g euRli+q7Izy7zbIoUZeBnGav4phY1NJTBM2e3lBCDtIpCKsqQ0axfopwwEADo852PgM7 gNvqiW/GWvUlM/IBDAp+nz+M8eCCW1VABwIn9mjQc+lPgP2XwIMF0va6Qs7QRjwehahZ 3ztX4RDlb5LBUv+mXK2BWegZv+xZe10l7smWuObRiwwGmbTnTUfkv30ebJ20R273WQOJ B2k/weTrne/cc5Ihe+P3RlDF23Kk09ToK3q8TT7hvqgMmEoV3ba6QFaEp5Sf7C3QroF5 s3PQ== 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 a10si3706353pjh.1.2019.06.19.00.11.08; Wed, 19 Jun 2019 00:11:25 -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 S1731136AbfFSHLD (ORCPT + 99 others); Wed, 19 Jun 2019 03:11:03 -0400 Received: from inva020.nxp.com ([92.121.34.13]:48558 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725892AbfFSHLC (ORCPT ); Wed, 19 Jun 2019 03:11:02 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 3FBA61A05A1; Wed, 19 Jun 2019 09:10:58 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 2B68A1A05A3; Wed, 19 Jun 2019 09:10:52 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 6BD8D402F0; Wed, 19 Jun 2019 15:10:44 +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, 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_register_uart_clocks() API Date: Wed, 19 Jun 2019 15:12:39 +0800 Message-Id: <20190619071240.38503-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_register_uart_clocks() API, so imx_register_uart_clocks() API should NOT be in .init section. Signed-off-by: Anson Huang --- drivers/clk/imx/clk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/imx/clk.c b/drivers/clk/imx/clk.c index f241189..76457b2 100644 --- a/drivers/clk/imx/clk.c +++ b/drivers/clk/imx/clk.c @@ -123,8 +123,8 @@ void imx_cscmr1_fixup(u32 *val) return; } -static int imx_keep_uart_clocks __initdata; -static struct clk ** const *imx_uart_clocks __initdata; +static int imx_keep_uart_clocks; +static struct clk ** const *imx_uart_clocks; static int __init imx_keep_uart_clocks_param(char *str) { @@ -137,7 +137,7 @@ __setup_param("earlycon", imx_keep_uart_earlycon, __setup_param("earlyprintk", imx_keep_uart_earlyprintk, imx_keep_uart_clocks_param, 0); -void __init imx_register_uart_clocks(struct clk ** const clks[]) +void imx_register_uart_clocks(struct clk ** const clks[]) { if (imx_keep_uart_clocks) { int i; -- 2.7.4