ar71xx: move mdio_bus reset code
[openwrt.git] / target / linux / adm5120 / patches-2.6.30 / 803-adm5120-fix-clock-for-amba-uart.patch
1 --- a/arch/mips/adm5120/common/clock.c
2 +++ b/arch/mips/adm5120/common/clock.c
3 @@ -19,6 +19,7 @@
4 #include <linux/module.h>
5 #include <linux/err.h>
6 #include <linux/clk.h>
7 +#include <linux/device.h>
8
9 #include <asm/mach-adm5120/adm5120_defs.h>
10
11 @@ -32,7 +33,9 @@ static struct clk uart_clk = {
12
13 struct clk *clk_get(struct device *dev, const char *id)
14 {
15 - if (!strcmp(id, "UARTCLK"))
16 + char *name = dev_name(dev);
17 +
18 + if (!strcmp(name, "apb:uart0") || !strcmp(name, "apb:uart1"))
19 return &uart_clk;
20
21 return ERR_PTR(-ENOENT);
This page took 0.045568 seconds and 5 git commands to generate.