From patchwork Wed May 18 11:16:50 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: 12853538 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 EF6ECC433F5 for ; Wed, 18 May 2022 11:18:54 +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=4QgF2tjfnajcNdxxwKw+h51xaU79STtA750UGLjpQis=; b=PW4jLui4KRqthg z4JeKbLds1BwKEifCaEWJ+NW34m7fVE3YjJCg6J+eVmWZCvY/IowyYdMcUKo1PTSIGb2kXgcJiIKg fONzgiNpIwdXQVIDav9kDsmzC2zz0iOMGc+fY2qCdq0Q5jV78iLeZWTDCBa446gzMf6gyE7+Q8V6o F34H1fSLMR2MvpU6fakPpVf7UVcEx5ZNxmuYAIX0UH+xt4kBAjKy1nZFlbZw6DdJXEdPGNglPprCe OjwdeCE8lmfaIy/d2nP4+t5OI5KsB/xHoyPVUaYiZnpL3m/wwmEdw4em+ccCgmQeQM2tc06OVqMTZ u3EZ7gHEbHtjZS53gnLg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nrHhZ-001Ssy-Fr; Wed, 18 May 2022 11:18:49 +0000 Received: from bhuna.collabora.co.uk ([46.235.227.227]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nrHfy-001Rt4-58; Wed, 18 May 2022 11:17:11 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: kholk11) with ESMTPSA id 698371F44F26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1652872629; bh=ed21MxQBys0eLKmWDwmejvGmdOdkFhFLW6SX1N40rec=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aAYVeaVpRGNpnK7K1rMus17w1kFCl3LUYG91K0kD28S36a8XsUrw1y+vA9JP+lfGm uqldoPrL7vcpA2gis7rnT+MUAuxD38amDbfLdd669bWIsZV/jCmwdyO3fsXPpUWNC+ CUlWitQppVodbyimMcdSwqLYWryK06YeT/gb0tTStwV/XM/n8hRriLiUNc2G8iXjrB +YYILvOJUsY/4k1npTZ2piZV4gnDV9SSpnhlfSFIhUjtqKW2L3qbIpR706PrptzGOu 5uATAPiEgZdkaO/mvMgmu/YIOHH4E8rEVsEQs2fwS5TuUkthoAMjklwDTj6OhsehDD xu2rii6BJRc4A== 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 v2 5/7] clk: mediatek: clk-apmixed: Remove unneeded __init annotation Date: Wed, 18 May 2022 13:16:50 +0200 Message-Id: <20220518111652.223727-6-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220518111652.223727-1-angelogioacchino.delregno@collabora.com> References: <20220518111652.223727-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-20220518_041710_389945_E1ED68BB X-CRM114-Status: GOOD ( 12.76 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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 --- 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;