Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <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>

authored by

AngeloGioacchino Del Regno and committed by
Chen-Yu Tsai
85b2181c e629bf40

+1 -1
+1 -1
drivers/clk/mediatek/clk-apmixed.c
··· 70 70 .unprepare = mtk_ref2usb_tx_unprepare, 71 71 }; 72 72 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, 74 74 const char *parent_name, void __iomem *reg) 75 75 { 76 76 struct mtk_ref2usb_tx *tx;