]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
OMAP: clock: fix compile warning
authorFelipe Balbi <balbi@ti.com>
Thu, 10 Mar 2011 01:44:28 +0000 (18:44 -0700)
committerPaul Walmsley <paul@pwsan.com>
Thu, 10 Mar 2011 01:44:28 +0000 (18:44 -0700)
if building kernels without OMAP2 support, we
will see a warning such as:

arch/arm/mach-omap2/io.c: In function 'omap2_init_common_infrastructure':
arch/arm/mach-omap2/io.c:389:3: warning: statement with no effect
arch/arm/mach-omap2/io.c:391:3: warning: statement with no effect

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/clock2xxx.h

index cc5c8d422c5bdb8cae8ec011bcd68dad9bb8a59a..cb6df8ca9e4a472443199d9f51b8ebd53fea5b98 100644 (file)
@@ -23,13 +23,13 @@ void omap2xxx_clk_prepare_for_reboot(void);
 #ifdef CONFIG_SOC_OMAP2420
 int omap2420_clk_init(void);
 #else
-#define omap2420_clk_init()    0
+#define omap2420_clk_init()    do { } while(0)
 #endif
 
 #ifdef CONFIG_SOC_OMAP2430
 int omap2430_clk_init(void);
 #else
-#define omap2430_clk_init()    0
+#define omap2430_clk_init()    do { } while(0)
 #endif
 
 extern void __iomem *prcm_clksrc_ctrl, *cm_idlest_pll;