提交 eefc842a 编写于 作者: R Russell King 提交者: Russell King

[ARM] netx: fix simple clk API

... to only return the framebuffer clock for the framebuffer device.
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 ae696fd5
......@@ -22,14 +22,11 @@
#include <linux/dma-mapping.h>
#include <linux/amba/bus.h>
#include <linux/amba/clcd.h>
#include <linux/err.h>
#include <mach/netx-regs.h>
#include <mach/hardware.h>
struct clk {};
static struct clk fb_clk;
static struct clcd_panel *netx_panel;
void netx_clcd_enable(struct clcd_fb *fb)
......@@ -85,7 +82,7 @@ int clk_enable(struct clk *clk)
struct clk *clk_get(struct device *dev, const char *id)
{
return &fb_clk;
return dev && strcmp(dev_name(dev), "fb") == 0 ? NULL : ERR_PTR(-ENOENT);
}
void clk_put(struct clk *clk)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册