Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp35741ybl; Tue, 7 Jan 2020 01:36:18 -0800 (PST) X-Google-Smtp-Source: APXvYqwdn+XYAnzANIctRZtC9GikP2nhDIOJA8qdKbeu1P+KerQvSLkimI6M1edtD/CYMCKAR7N0 X-Received: by 2002:a9d:6502:: with SMTP id i2mr94897152otl.206.1578389778208; Tue, 07 Jan 2020 01:36:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578389778; cv=none; d=google.com; s=arc-20160816; b=frFFow1F/qpI44ue29QzqWz1RuIkwihi7abpoBzSZ2/Ukh9GhLQNvqwaCaMxXhtb/m N1D9+VJm4NuTA0nMCjVSz3MZt56AfzLieovc73JejG+4IZgfnLpmegTgfGPP+CXGEj8T Ou2ybWxcJ6TGkyqmA7nELIPvu+AyKcD2DW/2SJfSzAv0uuSnV8hpzzfngBVGRKQ47Tk3 jOqnMzgU+jYR6uqKdrLke9IB1a+tgYTNsE3G0NbLHLfMVv+XEVhZPD9lBHay06rx76JP n9Ic5d7xOwUJjCUSAKjnnfJ3cblPpveukAUDIElhXBa/FFzQ2xKnayZOE5NyXRvAqDDS cd+g== 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=PMoefSwUi7CF2H4QivOXviSTFUfB001V294h1tRyD4Y=; b=ZxSX35l8gEhpHre/wQvC+QCmPmNXWWqdkx7u3hlS4ApvScDqeT9MuIBxu3d9n9nXfK 3A1Fz4Sg+jSLeHOQ/H4Hrg1BMij8S+jcWUTyQaFpQwmliolOdsZa/r6PtwPrk0Lc9dM/ l+B6W1kJhFuCeuice67Pqc0iC1DfT4TlnOvRm7LqfIss+cSNAnjjRyZgOSx3es0PKWB/ reQcP6QfqgaykGWLpGZql6WUldWLdXi4/J5CV2FPdNu8jUfgRyMd4t0hkbc4z6GiOKKG lAY8r+yvcZZQwLqo312aT5p02Mh5dqt4t4mVYA1pagvgr5Svzh8E5kSqSDFeiC8smzy0 dYYw== 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 h9si15164548oie.74.2020.01.07.01.36.05; Tue, 07 Jan 2020 01:36:18 -0800 (PST) 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 S1727769AbgAGJea (ORCPT + 99 others); Tue, 7 Jan 2020 04:34:30 -0500 Received: from inva020.nxp.com ([92.121.34.13]:33204 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727427AbgAGJe3 (ORCPT ); Tue, 7 Jan 2020 04:34:29 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id D91CC1A020C; Tue, 7 Jan 2020 10:34:27 +0100 (CET) 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 2651A1A0342; Tue, 7 Jan 2020 10:34:12 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 364B0402C4; Tue, 7 Jan 2020 16:56:55 +0800 (SGT) From: Anson Huang To: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, catalin.marinas@arm.com, will@kernel.org, bjorn.andersson@linaro.org, olof@lixom.net, maxime@cerno.tech, leonard.crestez@nxp.com, dinguyen@kernel.org, marcin.juszkiewicz@linaro.org, ping.bai@nxp.com, abel.vesa@nxp.com, nsekhar@ti.com, t-kristo@ti.com, peng.fan@nxp.com, yuehaibing@huawei.com, aisheng.dong@nxp.com, sfr@canb.auug.org.au, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH V2 1/5] clk: imx: Remove __init for imx_obtain_fixed_clk_hw() API Date: Tue, 7 Jan 2020 16:53:13 +0800 Message-Id: <1578387197-5750-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 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 Some of i.MX SoCs' clock driver use platform driver model, and they need to call imx_obtain_fixed_clk_hw() API, so imx_obtain_fixed_clk_hw() API should NOT be in .init section. Signed-off-by: Anson Huang --- New patch. --- drivers/clk/imx/clk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/imx/clk.c b/drivers/clk/imx/clk.c index cfc05e4..e61d6d7 100644 --- a/drivers/clk/imx/clk.c +++ b/drivers/clk/imx/clk.c @@ -94,8 +94,8 @@ struct clk_hw * __init imx_obtain_fixed_clock_hw( return __clk_get_hw(clk); } -struct clk_hw * __init imx_obtain_fixed_clk_hw(struct device_node *np, - const char *name) +struct clk_hw *imx_obtain_fixed_clk_hw(struct device_node *np, + const char *name) { struct clk *clk; -- 2.7.4