From eb59ea45ab77c14b090ea857d9ea9f902f40db0b Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Mon, 14 Jul 2008 19:45:45 +0200 Subject: [PATCH] video: Clean drivers/video/Makefile Signed-off-by: Michal Simek --- drivers/video/Makefile | 16 ++++++++-------- drivers/video/ati_radeon_fb.c | 3 --- drivers/video/cfb_console.c | 3 --- drivers/video/ct69000.c | 5 ----- drivers/video/mb862xx.c | 3 --- drivers/video/sed13806.c | 3 --- drivers/video/sed156x.c | 4 ---- drivers/video/sm501.c | 4 ---- drivers/video/smiLynxEM.c | 4 ---- 9 files changed, 8 insertions(+), 37 deletions(-) diff --git a/drivers/video/Makefile b/drivers/video/Makefile index 20a54c54d..7fba29fbc 100644 --- a/drivers/video/Makefile +++ b/drivers/video/Makefile @@ -25,15 +25,15 @@ include $(TOPDIR)/config.mk LIB := $(obj)libvideo.a -COBJS-y += ati_radeon_fb.o +COBJS-$(CONFIG_ATI_RADEON_FB) += ati_radeon_fb.o COBJS-$(CONFIG_ATMEL_LCD) += atmel_lcdfb.o -COBJS-y += cfb_console.o -COBJS-y += ct69000.o -COBJS-y += mb862xx.o -COBJS-y += sed13806.o -COBJS-y += sed156x.o -COBJS-y += sm501.o -COBJS-y += smiLynxEM.o +COBJS-$(CONFIG_CFB_CONSOLE) += cfb_console.o +COBJS-$(CONFIG_VIDEO_CT69000) += ct69000.o +COBJS-$(CONFIG_VIDEO_MB862xx) += mb862xx.o +COBJS-$(CONFIG_VIDEO_SED13806) += sed13806.o +COBJS-$(CONFIG_SED156X) += sed156x.o +COBJS-$(CONFIG_VIDEO_SM501) += sm501.o +COBJS-$(CONFIG_VIDEO_SMI_LYNXEM) += smiLynxEM.o COBJS-y += videomodes.o COBJS := $(COBJS-y) diff --git a/drivers/video/ati_radeon_fb.c b/drivers/video/ati_radeon_fb.c index a1e7baec1..650380b2c 100644 --- a/drivers/video/ati_radeon_fb.c +++ b/drivers/video/ati_radeon_fb.c @@ -35,8 +35,6 @@ #include -#ifdef CONFIG_ATI_RADEON_FB - #include #include #include @@ -777,4 +775,3 @@ void video_set_lut (unsigned int index, /* color number */ OUTREG(PALETTE_INDEX, index); OUTREG(PALETTE_DATA, (r << 16) | (g << 8) | b); } -#endif diff --git a/drivers/video/cfb_console.c b/drivers/video/cfb_console.c index d313e9098..79562ec11 100644 --- a/drivers/video/cfb_console.c +++ b/drivers/video/cfb_console.c @@ -92,8 +92,6 @@ CONFIG_VIDEO_HW_CURSOR: - Uses the hardware cursor capability of the #include -#ifdef CONFIG_CFB_CONSOLE - #include /*****************************************************************************/ @@ -1352,4 +1350,3 @@ int drv_video_init (void) /* No console dev available */ return 0; } -#endif /* CONFIG_CFB_CONSOLE */ diff --git a/drivers/video/ct69000.c b/drivers/video/ct69000.c index 29d82e4c4..cae662eaa 100644 --- a/drivers/video/ct69000.c +++ b/drivers/video/ct69000.c @@ -31,8 +31,6 @@ #include #include "videomodes.h" -#ifdef CONFIG_VIDEO_CT69000 - /* debug */ #undef VGA_DEBUG #undef VGA_DUMP_REG @@ -1280,7 +1278,4 @@ video_hw_bitblt (unsigned int bpp, /* bytes per pixel */ out32r (pGD->pciBase + BR08_o, (dim_y << 16) + dim_x); /* start the BITBlt */ video_wait_bitblt (pGD->pciBase + BR04_o); } - -#endif /* CONFIG_CT69000 */ - #endif /* CONFIG_VIDEO */ diff --git a/drivers/video/mb862xx.c b/drivers/video/mb862xx.c index 733d9a2ac..6c14b0d68 100644 --- a/drivers/video/mb862xx.c +++ b/drivers/video/mb862xx.c @@ -28,8 +28,6 @@ #include -#if defined(CONFIG_VIDEO_MB862xx) - #include #include #include @@ -416,4 +414,3 @@ void video_hw_bitblt (unsigned int bpp, unsigned int src_x, unsigned int src_y, DE_WR_FIFO ((height << 16) | width); de_wait (); /* sync */ } -#endif /* CONFIG_VIDEO_MB862xx */ diff --git a/drivers/video/sed13806.c b/drivers/video/sed13806.c index 6996ca805..9cd19b5c6 100644 --- a/drivers/video/sed13806.c +++ b/drivers/video/sed13806.c @@ -25,8 +25,6 @@ #include -#ifdef CONFIG_VIDEO_SED13806 - #include #include @@ -307,4 +305,3 @@ void video_init_hw_cursor (int font_width, int font_height) writeByte (LCD_CURSOR_CNTL, 1); } #endif -#endif diff --git a/drivers/video/sed156x.c b/drivers/video/sed156x.c index e9d5ed4cc..707250d24 100644 --- a/drivers/video/sed156x.c +++ b/drivers/video/sed156x.c @@ -28,8 +28,6 @@ #include -#ifdef CONFIG_SED156X - /* configure according to the selected display */ #if defined(CONFIG_SED156X_PG12864Q) #define LCD_WIDTH 128 @@ -562,5 +560,3 @@ void sed156x_init(void) sed156x_sync(); sed156x_cmd_transfer(LCD_ON); /* Turn display ON */ } - -#endif /* CONFIG_SED156X */ diff --git a/drivers/video/sm501.c b/drivers/video/sm501.c index 23db02cd1..283d2d969 100644 --- a/drivers/video/sm501.c +++ b/drivers/video/sm501.c @@ -31,8 +31,6 @@ #include -#ifdef CONFIG_VIDEO_SM501 - #include #include @@ -146,5 +144,3 @@ void video_set_lut ( ) { } - -#endif /* CONFIG_VIDEO_SM501 */ diff --git a/drivers/video/smiLynxEM.c b/drivers/video/smiLynxEM.c index 20f9beb01..390dd5697 100644 --- a/drivers/video/smiLynxEM.c +++ b/drivers/video/smiLynxEM.c @@ -40,8 +40,6 @@ #include -#if defined(CONFIG_VIDEO_SMI_LYNXEM) - #include #include #include "videomodes.h" @@ -854,5 +852,3 @@ void video_set_lut ( out8 (SMI_LUT_RGB, b>>2); /* blue */ udelay (10); } - -#endif /* CONFIG_VIDEO_SMI_LYNXEM */