]> git.dujemihanovic.xyz Git - linux.git/commitdiff
clk: mediatek: clk-apmixed: Remove unneeded __init annotation
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Wed, 21 Sep 2022 09:14:52 +0000 (11:14 +0200)
committerChen-Yu Tsai <wenst@chromium.org>
Mon, 26 Sep 2022 03:13:09 +0000 (11:13 +0800)
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 <angelogioacchino.delregno@collabora.com>
Reviewed-by: Miles Chen <miles.chen@mediatek.com>
Link: https://lore.kernel.org/r/20220921091455.41327-6-angelogioacchino.delregno@collabora.com
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
drivers/clk/mediatek/clk-apmixed.c

index fc3d4146f4827e4504156f8e1320155249b66faa..6b0ab0a346e8429c30cb810a545136c8101089f7 100644 (file)
@@ -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;