diff options
author | Markos Chandras <markos.chandras@imgtec.com> | 2013-07-02 05:13:44 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-07-02 09:59:11 -0400 |
commit | 7aa2d05299f92ab73591988ab514f0ddc98138f3 (patch) | |
tree | 107d44a751fd04b51d60850c46d1726bad37a8a0 /arch | |
parent | 1535ac096d26538888d00881f5026cbc8b6dc20d (diff) |
MIPS: BCM63xx: CLK: Add dummy clk_{set,round}_rate() functions
Several drivers use the clk_{set,round}_rate() functions
that need to be defined in the platform's clock code.
The Broadcom BCM63xx platform hardcodes the clock rate so
we create new clk_{set,round}_rate() functions
which just return 0 like those in include/linux/clk.h
for the common clock framework do.
Also fixes the following build problem on a randconfig:
drivers/built-in.o: In function `nop_usb_xceiv_probe':
phy-nop.c:(.text+0x3ec26c): undefined reference to `clk_set_rate'
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Acked-by: Steven J. Hill <Steven.Hill@imgtec.com>
Acked-by: Florian Fainelli <florian@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5580/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/bcm63xx/clk.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/mips/bcm63xx/clk.c b/arch/mips/bcm63xx/clk.c index fda2690a8ef1..43da4ae04cc2 100644 --- a/arch/mips/bcm63xx/clk.c +++ b/arch/mips/bcm63xx/clk.c | |||
@@ -318,6 +318,18 @@ unsigned long clk_get_rate(struct clk *clk) | |||
318 | 318 | ||
319 | EXPORT_SYMBOL(clk_get_rate); | 319 | EXPORT_SYMBOL(clk_get_rate); |
320 | 320 | ||
321 | int clk_set_rate(struct clk *clk, unsigned long rate) | ||
322 | { | ||
323 | return 0; | ||
324 | } | ||
325 | EXPORT_SYMBOL_GPL(clk_set_rate); | ||
326 | |||
327 | long clk_round_rate(struct clk *clk, unsigned long rate) | ||
328 | { | ||
329 | return 0; | ||
330 | } | ||
331 | EXPORT_SYMBOL_GPL(clk_round_rate); | ||
332 | |||
321 | struct clk *clk_get(struct device *dev, const char *id) | 333 | struct clk *clk_get(struct device *dev, const char *id) |
322 | { | 334 | { |
323 | if (!strcmp(id, "enet0")) | 335 | if (!strcmp(id, "enet0")) |