diff options
author | Florian Fainelli <florian@openwrt.org> | 2011-02-18 12:52:04 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2011-02-18 12:52:04 +0000 |
commit | a5b575ea457829fdeaec9008e60b50709575cbf0 (patch) | |
tree | c6ab53ae048322a22665aae777373ef18a3a42e4 /target/linux/ar7/patches-2.6.37/170-clocks_init_earlier.patch | |
parent | 3156ceea1d04ff48a6178aa5c6a8b2375716f564 (diff) | |
download | master-187ad058-a5b575ea457829fdeaec9008e60b50709575cbf0.tar.gz master-187ad058-a5b575ea457829fdeaec9008e60b50709575cbf0.tar.bz2 master-187ad058-a5b575ea457829fdeaec9008e60b50709575cbf0.zip |
[ar7] add support for 2.6.37, thanks Wipster!
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25569 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar7/patches-2.6.37/170-clocks_init_earlier.patch')
-rw-r--r-- | target/linux/ar7/patches-2.6.37/170-clocks_init_earlier.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/ar7/patches-2.6.37/170-clocks_init_earlier.patch b/target/linux/ar7/patches-2.6.37/170-clocks_init_earlier.patch new file mode 100644 index 0000000000..6f09317e36 --- /dev/null +++ b/target/linux/ar7/patches-2.6.37/170-clocks_init_earlier.patch @@ -0,0 +1,20 @@ +--- a/arch/mips/ar7/time.c ++++ b/arch/mips/ar7/time.c +@@ -33,6 +33,8 @@ void __init plat_time_init(void) + /* Initialize ar7 clocks so the CPU clock frequency is correct */ + ar7_init_clocks(); + ++ ar7_init_clocks(); ++ + cpu_clk = clk_get(NULL, "cpu"); + if (IS_ERR(cpu_clk)) { + printk(KERN_ERR "unable to get cpu clock\n"); +--- a/arch/mips/include/asm/mach-ar7/ar7.h ++++ b/arch/mips/include/asm/mach-ar7/ar7.h +@@ -203,4 +203,6 @@ static inline void ar7_device_off(u32 bi + int __init ar7_gpio_init(void); + void __init ar7_init_clocks(void); + ++extern void __init ar7_init_clocks(void); ++ + #endif /* __AR7_H__ */ |