diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-11-30 18:46:52 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-11-30 18:46:52 +0100 |
commit | 112243034cec7c3ef0499fdebf39218714da453d (patch) | |
tree | f6469eaab26ea2e985da32b5cc297ddb9c64f952 /arch/arm/mach-netx | |
parent | [ARM] Update mach-types (diff) | |
parent | [ARM] amba drivers: don't pass a consumer clock name for devices with unique ... (diff) | |
download | linux-112243034cec7c3ef0499fdebf39218714da453d.tar.xz linux-112243034cec7c3ef0499fdebf39218714da453d.zip |
Merge branch 'clks' into devel
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 @@ #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) |