Skip to content

Commit

Permalink
clk: mediatek: clk-apmixed: Remove unneeded __init annotation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
AngeloGioacchino Del Regno authored and Chen-Yu Tsai committed Sep 26, 2022
1 parent e629bf4 commit 85b2181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clk/mediatek/clk-apmixed.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 85b2181

Please sign in to comment.