diff options
author | Greg Ungerer <gerg@uclinux.org> | 2012-06-12 05:27:31 +0200 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2012-06-25 01:17:20 +0200 |
commit | 19a1d332cc8ca599578111b9ff8cd6963f75c387 (patch) | |
tree | c7fcc4ec0722d5673e6b4654978bb3af334d1542 /arch/m68k | |
parent | Linux 3.5-rc4 (diff) | |
download | linux-19a1d332cc8ca599578111b9ff8cd6963f75c387.tar.xz linux-19a1d332cc8ca599578111b9ff8cd6963f75c387.zip |
m68knommu: define a local devm_clk_get() function
Commit f4d40de39a23f0c39cca55ac63e1175c69c3d2f7 ("net fec: do not depend
on grouped clocks") breaks compilation of the FEC driver for non iMX
platforms in linux-3.5-rc1. For example when compiling for ColdFire I get:
LD vmlinux
drivers/built-in.o: In function `fec_probe':
fec.c:(.devinit.text+0x1e0): undefined reference to `devm_clk_get'
Define a simple devm_clk_get() function for the m68knommu architecture.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/platform/coldfire/clk.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/m68k/platform/coldfire/clk.c b/arch/m68k/platform/coldfire/clk.c index 9f1260c5e2ad..44da406897e5 100644 --- a/arch/m68k/platform/coldfire/clk.c +++ b/arch/m68k/platform/coldfire/clk.c @@ -42,4 +42,11 @@ unsigned long clk_get_rate(struct clk *clk) return MCF_CLK; } EXPORT_SYMBOL(clk_get_rate); + +struct clk *devm_clk_get(struct device *dev, const char *id) +{ + return NULL; +} +EXPORT_SYMBOL(devm_clk_get); + /***************************************************************************/ |