]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
sisfb: move the CONFIG warning to sis_main.c
authorAaro Koskinen <aaro.koskinen@iki.fi>
Fri, 19 Nov 2010 21:58:50 +0000 (21:58 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 24 Nov 2010 07:03:16 +0000 (16:03 +0900)
sis_main.c is always compiled, so we can check Kconfig options there.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Thomas Winischhofer <thomas@winischhofer.net>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/sis/osdef.h
drivers/video/sis/sis_main.c

index af5e9a29be9b17e52d5d3b36caf5c886a268ca2a..5baaa79e71f8fe7da3154929a59da63962251218 100644 (file)
@@ -58,9 +58,4 @@
 /*  LINUX KERNEL                                                      */
 /**********************************************************************/
 
-#if !defined(CONFIG_FB_SIS_300) && !defined(CONFIG_FB_SIS_315)
-#warning Neither CONFIG_FB_SIS_300 nor CONFIG_FB_SIS_315 is set
-#warning sisfb will not work!
-#endif
-
 #endif  /* _OSDEF_H_ */
index 7feb6992c7cccc5edc802e125f5de6d9f31dcf7b..7e3370f115b6cdba3259b9a5bfd516cc10b3709f 100644 (file)
 #include "sis.h"
 #include "sis_main.h"
 
+#if !defined(CONFIG_FB_SIS_300) && !defined(CONFIG_FB_SIS_315)
+#warning Neither CONFIG_FB_SIS_300 nor CONFIG_FB_SIS_315 is set
+#warning sisfb will not work!
+#endif
+
 static void sisfb_handle_command(struct sis_video_info *ivideo,
                                 struct sisfb_cmd *sisfb_command);