Skip to content

Commit

Permalink
sisfb: move the CONFIG warning to sis_main.c
Browse files Browse the repository at this point in the history
sis_main.c is always compiled, so we can check Kconfig options there.

Signed-off-by: Aaro Koskinen <[email protected]>
Cc: Thomas Winischhofer <[email protected]>
Signed-off-by: Paul Mundt <[email protected]>
  • Loading branch information
aakoskin authored and pmundt committed Nov 24, 2010
1 parent ec49ec3 commit 1f8e6ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/video/sis/osdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_ */
5 changes: 5 additions & 0 deletions drivers/video/sis/sis_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@
#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);

Expand Down

0 comments on commit 1f8e6ee

Please sign in to comment.