Skip to content

Commit 85b2181

Browse files
AngeloGioacchino Del Regnowens
authored andcommitted
clk: mediatek: clk-apmixed: Remove unneeded __init annotation
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 <[email protected]> Reviewed-by: Miles Chen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Chen-Yu Tsai <[email protected]>
1 parent e629bf4 commit 85b2181

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/mediatek/clk-apmixed.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static const struct clk_ops mtk_ref2usb_tx_ops = {
7070
.unprepare = mtk_ref2usb_tx_unprepare,
7171
};
7272

73-
struct clk_hw * __init mtk_clk_register_ref2usb_tx(const char *name,
73+
struct clk_hw *mtk_clk_register_ref2usb_tx(const char *name,
7474
const char *parent_name, void __iomem *reg)
7575
{
7676
struct mtk_ref2usb_tx *tx;

0 commit comments

Comments
 (0)