From patchwork Fri Jun 24 09:35:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 12894287 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DDA0FC43334 for ; Fri, 24 Jun 2022 09:39:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=39zE2V9Sm9+MVi5ApbH6rI77hRA05guSn2NVWGAo6PE=; b=wEOAc4cGXmsUyh VXlpETKmk1TW7w7Fqqm2OjaS1B3ItwSxNQiorV9uzpWbIx6wJwoRdo272Z0tktjnp1xLLGHPjA16p tZdMMHq4YeCq+1cUsjWAg5tsS1XFLGNEfcJS3Vis/D/1wAMVahufDAJbLa5547ReQ3ldjiBtDUfvZ pidxd1CnNqkcCSgx/5Qh304V/lNhvYAmSYXsxd+otq1inr5VfxKDEBldiok9ccZgShbGU/z9qgTON t8S3ohmwD8WTt52uHf9Mgn1TUiFBAZF9uZQ5K140IYVPpqatPIYt0gZcE1sycM+BIqECsvYn54CFP dgcu5bEylEdGKbs+1Jmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4flk-001T4W-Hk; Fri, 24 Jun 2022 09:38:29 +0000 Received: from madras.collabora.co.uk ([46.235.227.172]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4fj2-001RvK-R1; Fri, 24 Jun 2022 09:35:42 +0000 Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 0FBDC6601809; Fri, 24 Jun 2022 10:35:38 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1656063339; bh=ed21MxQBys0eLKmWDwmejvGmdOdkFhFLW6SX1N40rec=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Nlz/joAXFpNGitizoNGWQDSpZqV8ygdSeWrtaw3sPrNgrlq9p/4pumQcq+cYtTW72 EVcvjxEzCrwKDIgArhiWt98IHPi5VmtTgsNJppGMELqDxsXzoAtHiG3zuL8NcO+h54 eqe8z+QpuNbR7piAbxWGM0YNGKTIZAjn9ieNNX+FYrR22X3TePhZJrFuKBppjW21FP uokeZ31GL+by9ws3CThFWRru+g7w0tEyxT2GeSOPhaQ3zLMM0YYJqKfGHm8F/mYpMy T50plrZXMiv97owksfujzAzeycFKB1/qKS+S+zLVvHzUGzLQnwskQg0zgMwuhC44gJ uOV4QA0u4+BWA== From: AngeloGioacchino Del Regno To: robh+dt@kernel.org Cc: krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, mturquette@baylibre.com, sboyd@kernel.org, p.zabel@pengutronix.de, y.oudjana@protonmail.com, angelogioacchino.delregno@collabora.com, jason-jh.lin@mediatek.com, ck.hu@mediatek.com, fparent@baylibre.com, rex-bc.chen@mediatek.com, tinghan.shen@mediatek.com, chun-jie.chen@mediatek.com, weiyi.lu@mediatek.com, ikjn@chromium.org, miles.chen@mediatek.com, sam.shih@mediatek.com, wenst@chromium.org, bgolaszewski@baylibre.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-clk@vger.kernel.org, konrad.dybcio@somainline.org, marijn.suijten@somainline.org, martin.botka@somainline.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, paul.bouchara@somainline.org, kernel@collabora.com Subject: [PATCH v3 5/7] clk: mediatek: clk-apmixed: Remove unneeded __init annotation Date: Fri, 24 Jun 2022 11:35:23 +0200 Message-Id: <20220624093525.243077-6-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220624093525.243077-1-angelogioacchino.delregno@collabora.com> References: <20220624093525.243077-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220624_023541_071980_D43742F1 X-CRM114-Status: GOOD ( 12.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Remove an unneeded __init annotation from the declaration of function mtk_clk_register_ref2usb_tx(): this avoids section mismatch warnings during modpost phase when called from functions that have no such annotation (useful when clocks are platform drivers). Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Miles Chen --- drivers/clk/mediatek/clk-apmixed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/mediatek/clk-apmixed.c b/drivers/clk/mediatek/clk-apmixed.c index fc3d4146f482..6b0ab0a346e8 100644 --- a/drivers/clk/mediatek/clk-apmixed.c +++ b/drivers/clk/mediatek/clk-apmixed.c @@ -70,7 +70,7 @@ static const struct clk_ops mtk_ref2usb_tx_ops = { .unprepare = mtk_ref2usb_tx_unprepare, }; -struct clk_hw * __init mtk_clk_register_ref2usb_tx(const char *name, +struct clk_hw *mtk_clk_register_ref2usb_tx(const char *name, const char *parent_name, void __iomem *reg) { struct mtk_ref2usb_tx *tx;