pali's n900 tree: fix compilation
Pavel Machek
pavel at ucw.cz
Mon Jul 8 08:04:43 EDT 2013
Hi!
This fixes compilation w/o CONFIG_TWL4030_MADC.
Please apply :-).
Signed-off-by: Pavel Machek <pavel at ucw.cz>
diff --git a/arch/arm/mach-omap2/board-rx51-compat.c b/arch/arm/mach-omap2/board-rx51-compat.c
index ceabe8b..f3a82a3 100644
--- a/arch/arm/mach-omap2/board-rx51-compat.c
+++ b/arch/arm/mach-omap2/board-rx51-compat.c
@@ -125,6 +125,7 @@ static long twl4030_madc_ioctl(struct file *filp, unsigned int cmd,
}
switch (cmd) {
+#ifdef CONFIG_TWL4030_MADC
case TWL4030_MADC_IOCX_ADC_RAW_READ: {
struct twl4030_madc_request req;
if (par.channel >= TWL4030_MADC_MAX_CHANNELS)
@@ -148,6 +149,7 @@ static long twl4030_madc_ioctl(struct file *filp, unsigned int cmd,
}
break;
}
+#endif
default:
return -EINVAL;
}
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
More information about the linux-arm-kernel
mailing list