diff options
author | Andriy Skulysh <askulysh@gmail.com> | 2006-09-27 06:07:38 +0200 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 06:07:38 +0200 |
commit | 4bcac20a7a01d49dffb5e88a8140efa34927c383 (patch) | |
tree | c931d2d1ef979b431f297265ea386083e13aeefa /drivers/video/hitfb.c | |
parent | sh: Various cosmetic cleanups. (diff) | |
download | linux-4bcac20a7a01d49dffb5e88a8140efa34927c383.tar.xz linux-4bcac20a7a01d49dffb5e88a8140efa34927c383.zip |
sh: hp6xx mach-type cleanups.
Some minor cleanups for the updated consolidated hp6xx
mach-type.
Signed-off-by: Andriy Skulysh <askulysh@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/video/hitfb.c')
-rw-r--r-- | drivers/video/hitfb.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/video/hitfb.c b/drivers/video/hitfb.c index 4cc6b454265e..c6ac0dcd8854 100644 --- a/drivers/video/hitfb.c +++ b/drivers/video/hitfb.c @@ -28,10 +28,8 @@ #include <asm/io.h> #include <asm/hd64461/hd64461.h> -#ifdef MACH_HP600 #include <asm/cpu/dac.h> #include <asm/hp6xx/hp6xx.h> -#endif #define WIDTH 640 @@ -192,12 +190,6 @@ int hitfb_blank(int blank_mode, struct fb_info *info) unsigned short v; if (blank_mode) { -#ifdef MACH_HP600 - sh_dac_disable(DAC_LCD_BRIGHTNESS); - v = fb_readw(HD64461_GPBDR); - v |= HD64461_GPBDR_LCDOFF; - fb_writew(v, HD64461_GPBDR); -#endif v = fb_readw(HD64461_LDR1); v &= ~HD64461_LDR1_DON; fb_writew(v, HD64461_LDR1); @@ -213,12 +205,7 @@ int hitfb_blank(int blank_mode, struct fb_info *info) v = fb_readw(HD64461_STBCR); v &= ~HD64461_STBCR_SLCDST; fb_writew(v, HD64461_STBCR); -#ifdef MACH_HP600 - sh_dac_enable(DAC_LCD_BRIGHTNESS); - v = fb_readw(HD64461_GPBDR); - v &= ~HD64461_GPBDR_LCDOFF; - fb_writew(v, HD64461_GPBDR); -#endif + v = fb_readw(HD64461_LDR1); v |= HD64461_LDR1_DON; fb_writew(v, HD64461_LDR1); |