diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-11-30 12:17:25 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-11-30 12:17:25 -0500 |
commit | eefc842a6e1de128fbdc9214b9f178a2e238fb7b (patch) | |
tree | d2ad19ca658d61858eaae521faaf6c6c585caefb /arch/arm/mach-netx | |
parent | ae696fd53280d85b43ec1dd74f80162bee088862 (diff) |
[ARM] netx: fix simple clk API
... to only return the framebuffer clock for the framebuffer device.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-netx')
-rw-r--r-- | arch/arm/mach-netx/fb.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/arm/mach-netx/fb.c b/arch/arm/mach-netx/fb.c index 24c79650f9f3..8f1f992f002e 100644 --- a/arch/arm/mach-netx/fb.c +++ b/arch/arm/mach-netx/fb.c | |||
@@ -22,14 +22,11 @@ | |||
22 | #include <linux/dma-mapping.h> | 22 | #include <linux/dma-mapping.h> |
23 | #include <linux/amba/bus.h> | 23 | #include <linux/amba/bus.h> |
24 | #include <linux/amba/clcd.h> | 24 | #include <linux/amba/clcd.h> |
25 | #include <linux/err.h> | ||
25 | 26 | ||
26 | #include <mach/netx-regs.h> | 27 | #include <mach/netx-regs.h> |
27 | #include <mach/hardware.h> | 28 | #include <mach/hardware.h> |
28 | 29 | ||
29 | struct clk {}; | ||
30 | |||
31 | static struct clk fb_clk; | ||
32 | |||
33 | static struct clcd_panel *netx_panel; | 30 | static struct clcd_panel *netx_panel; |
34 | 31 | ||
35 | void netx_clcd_enable(struct clcd_fb *fb) | 32 | void netx_clcd_enable(struct clcd_fb *fb) |
@@ -85,7 +82,7 @@ int clk_enable(struct clk *clk) | |||
85 | 82 | ||
86 | struct clk *clk_get(struct device *dev, const char *id) | 83 | struct clk *clk_get(struct device *dev, const char *id) |
87 | { | 84 | { |
88 | return &fb_clk; | 85 | return dev && strcmp(dev_name(dev), "fb") == 0 ? NULL : ERR_PTR(-ENOENT); |
89 | } | 86 | } |
90 | 87 | ||
91 | void clk_put(struct clk *clk) | 88 | void clk_put(struct clk *clk) |