Skip to content

Commit 84a0124

Browse files
krzktsbogend
authored andcommitted
MIPS: ralink: define stubs for clk_set_parent to fix compile testing
The Ralink MIPS platform does not use Common Clock Framework and does not define certain clock operations leading to compile test failures: /usr/bin/mips-linux-gnu-ld: drivers/usb/phy/phy-tegra-usb.o: in function `tegra_usb_phy_init': phy-tegra-usb.c:(.text+0x1dd4): undefined reference to `clk_get_parent' Reported-by: kernel test robot <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Acked-by: John Crispin <[email protected]> Reviewed-by: Dmitry Osipenko <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 3953ec0 commit 84a0124

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

arch/mips/ralink/clk.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,20 @@ long clk_round_rate(struct clk *clk, unsigned long rate)
7070
}
7171
EXPORT_SYMBOL_GPL(clk_round_rate);
7272

73+
int clk_set_parent(struct clk *clk, struct clk *parent)
74+
{
75+
WARN_ON(clk);
76+
return -1;
77+
}
78+
EXPORT_SYMBOL_GPL(clk_set_parent);
79+
80+
struct clk *clk_get_parent(struct clk *clk)
81+
{
82+
WARN_ON(clk);
83+
return NULL;
84+
}
85+
EXPORT_SYMBOL_GPL(clk_get_parent);
86+
7387
void __init plat_time_init(void)
7488
{
7589
struct clk *clk;

0 commit comments

Comments
 (0)