Skip to content

Commit

Permalink
simplefb: Fix build errors when CONFIG_COMMON_CLK is not defined
Browse files Browse the repository at this point in the history
Both CONFIG_OF and CONFIG_COMMON_CLK must be defined to be able to use of
clocks.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Hans de Goede authored and Tomi Valkeinen committed Nov 25, 2014
1 parent 0c5b240 commit 8284731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/video/fbdev/simplefb.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@ static int simplefb_parse_pd(struct platform_device *pdev,

struct simplefb_par {
u32 palette[PSEUDO_PALETTE_SIZE];
#ifdef CONFIG_OF
#if defined CONFIG_OF && defined CONFIG_COMMON_CLK
int clk_count;
struct clk **clks;
#endif
};

#ifdef CONFIG_OF
#if defined CONFIG_OF && defined CONFIG_COMMON_CLK
/*
* Clock handling code.
*
Expand Down

0 comments on commit 8284731

Please sign in to comment.