diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-10-08 11:13:10 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2009-10-08 11:13:10 +0000 |
commit | 267c50a1abf9c70ec1d9f93624f92f3a0b2680fc (patch) | |
tree | 16e1da78ffaa8b3b7311fe958bf9808df1467f95 /target/linux/adm5120/patches-2.6.31/803-adm5120-fix-clock-for-amba-uart.patch | |
parent | 95f55531694ae1d81b2808a2fc515c56908428e4 (diff) | |
download | upstream-267c50a1abf9c70ec1d9f93624f92f3a0b2680fc.tar.gz upstream-267c50a1abf9c70ec1d9f93624f92f3a0b2680fc.tar.bz2 upstream-267c50a1abf9c70ec1d9f93624f92f3a0b2680fc.zip |
adm5120: add preliminary support for 2.6.31
SVN-Revision: 18000
Diffstat (limited to 'target/linux/adm5120/patches-2.6.31/803-adm5120-fix-clock-for-amba-uart.patch')
-rw-r--r-- | target/linux/adm5120/patches-2.6.31/803-adm5120-fix-clock-for-amba-uart.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/adm5120/patches-2.6.31/803-adm5120-fix-clock-for-amba-uart.patch b/target/linux/adm5120/patches-2.6.31/803-adm5120-fix-clock-for-amba-uart.patch new file mode 100644 index 0000000000..795c28578e --- /dev/null +++ b/target/linux/adm5120/patches-2.6.31/803-adm5120-fix-clock-for-amba-uart.patch @@ -0,0 +1,21 @@ +--- a/arch/mips/adm5120/common/clock.c ++++ b/arch/mips/adm5120/common/clock.c +@@ -19,6 +19,7 @@ + #include <linux/module.h> + #include <linux/err.h> + #include <linux/clk.h> ++#include <linux/device.h> + + #include <asm/mach-adm5120/adm5120_defs.h> + +@@ -32,7 +33,9 @@ static struct clk uart_clk = { + + struct clk *clk_get(struct device *dev, const char *id) + { +- if (!strcmp(id, "UARTCLK")) ++ char *name = dev_name(dev); ++ ++ if (!strcmp(name, "apb:uart0") || !strcmp(name, "apb:uart1")) + return &uart_clk; + + return ERR_PTR(-ENOENT); |