[PATCH] ARM: imx: fix missing cpuidle.h include

Ben Dooks ben.dooks at codethink.co.uk
Wed Jun 8 10:29:05 PDT 2016


Fix the missing declaration of imx5_cpuidle_init() by including
the cpuidle.h it is declared in. Fixes:

arch/arm/mach-imx/cpuidle-imx5.c:33:12: warning: symbol 'imx5_cpuidle_init' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben.dooks at codethink.co.uk>
---
Cc: Shawn Guo <shawnguo at kernel.org>
Cc: Sascha Hauer <kernel at pengutronix.de>
Cc: linux-arm-kernel at lists.infradead.org
---
 arch/arm/mach-imx/cpuidle-imx5.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/mach-imx/cpuidle-imx5.c b/arch/arm/mach-imx/cpuidle-imx5.c
index 3feca52..6fff6fa 100644
--- a/arch/arm/mach-imx/cpuidle-imx5.c
+++ b/arch/arm/mach-imx/cpuidle-imx5.c
@@ -10,6 +10,8 @@
 #include <linux/module.h>
 #include <asm/system_misc.h>
 
+#include "cpuidle.h"
+
 static int imx5_cpuidle_enter(struct cpuidle_device *dev,
 			      struct cpuidle_driver *drv, int index)
 {
-- 
2.8.1




More information about the linux-arm-kernel mailing list