提交 8284731e 编写于 作者: H Hans de Goede 提交者: Tomi Valkeinen

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: NHans de Goede <hdegoede@redhat.com>
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
上级 0c5b240c
...@@ -169,13 +169,13 @@ static int simplefb_parse_pd(struct platform_device *pdev, ...@@ -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.
* *
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册