1 --- a/arch/mips/adm5120/common/clock.c
2 +++ b/arch/mips/adm5120/common/clock.c
4 #include <linux/module.h>
7 +#include <linux/device.h>
9 #include <asm/mach-adm5120/adm5120_defs.h>
11 @@ -32,7 +33,9 @@ static struct clk uart_clk = {
13 struct clk *clk_get(struct device *dev, const char *id)
15 - if (!strcmp(id, "UARTCLK"))
16 + char *name = dev_name(dev);
18 + if (!strcmp(name, "apb:uart0") || !strcmp(name, "apb:uart1"))
21 return ERR_PTR(-ENOENT);