From patchwork Fri Jul 22 09:06:06 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: 12926186 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 D174DC43334 for ; Fri, 22 Jul 2022 09:09:20 +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=9ElsIZzGLrMJf0FCawcw+bgp8gdeVp1784FOzUwSjqI=; b=DtnlYti6V02dPK X2DUZ5VOt+Bxo/BmHKbHLPK3da9lZRlUX6CsbsZR7NLc3Uzh8PZ8wSXOyNFRhXtCeCXrjqiqH6wdo O2OqFr6mbJUVysy8g2vNHsx9fk454ObCq6dRJ20UsDd4rYndQSXpwYW2sWIVvTRW1xNSV99mhnsad 3SSa0NdnLfuK8QKxOZ2KznhdSyjuMO3MruVG3TG01UW/+dbE/bovBVKvXW4Sgxj0YlrCgHyZ13aK+ n/Sre/S5oXjTeTiU+pNLPyBukLDmmb+5LHbE6XGVuaeltRtDie62I9RyuNX22t3WmqwtqjwYkFWLa PZNMM0gc4tfybxAwZIyQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oEodm-001N4B-8r; Fri, 22 Jul 2022 09:08:10 +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 1oEoc3-001Lo0-D5; Fri, 22 Jul 2022 09:06:25 +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 BED446601AD5; Fri, 22 Jul 2022 10:06:20 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1658480782; bh=Z7g3rMRXfsVUy9u/ifzOPNTpC7K1R1mO+IQ0gPIXbVA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ke9XCuYmi6cOBfwxq64sKffugBd/rtnhu9Les17dtk9L9NS0YqF/8UqhqtJYhlrs2 2Hdl/YqeJwa4d8X5p9gz5H3kobTljd2d6iFVf3SFLKl9+76H/HP60LM0iit8kBBzmG uisvu4x4Li6oefFgS5lCr4d1M/2jQCUzeenqF9WW8nf+cGUIU7bN6+agDnTKCm4kDV XyGH+59qJH11UsYaAe8hPQYR3OCHAzCkL0SxV8tB/jNSAC6/J4SBW9ZI4hRhmjFUie oaomugTbkDY0pCoXuM7KBuPdGgy47n3aaVUhYJW/PkE693qGO+bZbk/bAixRn52CHy /B9oOCf2ITD6A== From: AngeloGioacchino Del Regno To: sboyd@kernel.org Cc: mturquette@baylibre.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, 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, 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 v6 5/8] clk: mediatek: clk-apmixed: Remove unneeded __init annotation Date: Fri, 22 Jul 2022 11:06:06 +0200 Message-Id: <20220722090609.52364-6-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220722090609.52364-1-angelogioacchino.delregno@collabora.com> References: <20220722090609.52364-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-20220722_020623_627078_8BA69D27 X-CRM114-Status: GOOD ( 12.35 ) 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;