Skip to content

Commit

Permalink
[ARM] netx: fix simple clk API
Browse files Browse the repository at this point in the history
... to only return the framebuffer clock for the framebuffer device.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King authored and Russell King committed Nov 30, 2008
1 parent ae696fd commit eefc842
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions arch/arm/mach-netx/fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit eefc842

Please sign in to comment.