]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
simplefb: Fix build errors when CONFIG_COMMON_CLK is not defined
authorHans de Goede <hdegoede@redhat.com>
Tue, 25 Nov 2014 11:13:30 +0000 (12:13 +0100)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 25 Nov 2014 12:10:28 +0000 (14:10 +0200)
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>
drivers/video/fbdev/simplefb.c

index 8be9754c9fe984fc1fd63b834b26224262efcb45..b2ae9254fd75563ebe4f24686f96b1b3e2e74020 100644 (file)
@@ -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.
  *