simplefb: Fix build errors when CONFIG_COMMON_CLK is not defined
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>
This commit is contained in:
parent
0c5b240c7e
commit
8284731eb5
1 changed files with 2 additions and 2 deletions
|
@ -169,13 +169,13 @@ static int simplefb_parse_pd(struct platform_device *pdev,
|
||||||
|
|
||||||
struct simplefb_par {
|
struct simplefb_par {
|
||||||
u32 palette[PSEUDO_PALETTE_SIZE];
|
u32 palette[PSEUDO_PALETTE_SIZE];
|
||||||
#ifdef CONFIG_OF
|
#if defined CONFIG_OF && defined CONFIG_COMMON_CLK
|
||||||
int clk_count;
|
int clk_count;
|
||||||
struct clk **clks;
|
struct clk **clks;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef CONFIG_OF
|
#if defined CONFIG_OF && defined CONFIG_COMMON_CLK
|
||||||
/*
|
/*
|
||||||
* Clock handling code.
|
* Clock handling code.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue