]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/freescale/common/fsl_diu_fb.c
Big white-space cleanup.
[people/ms/u-boot.git] / board / freescale / common / fsl_diu_fb.c
index 5a8576ea2b06de152b01465633b3dfaa3b0662b5..6189ec94f810b11123c668e875ee71ebd097b2f9 100644 (file)
@@ -27,8 +27,6 @@
 #include <i2c.h>
 #include <malloc.h>
 
-#ifdef CONFIG_FSL_DIU_FB
-
 #include "fsl_diu_fb.h"
 
 #ifdef DEBUG
@@ -162,7 +160,7 @@ struct diu_hw {
 
 struct diu_addr {
        unsigned char  *  paddr;        /* Virtual address */
-       unsigned int       offset;
+       unsigned int       offset;
 };
 
 #define FSL_DIU_BASE_OFFSET    0x2C000 /* Offset of Display Interface Unit */
@@ -288,7 +286,7 @@ int fsl_diu_init(int xres,
        ad->src_size_g_alpha
                        = cpu_to_le32((var->yres << 12) | var->xres);
        /* fix me. AOI should not be greater than display size */
-       ad->aoi_size    = cpu_to_le32(( var->yres << 16) |  var->xres);
+       ad->aoi_size    = cpu_to_le32(( var->yres << 16) |  var->xres);
        ad->offset_xyi = 0;
        ad->offset_xyd = 0;
 
@@ -327,7 +325,7 @@ int fsl_diu_init(int xres,
        hw->gamma = (unsigned int) gamma.paddr;
        hw->cursor= (unsigned int) cursor.paddr;
        hw->bgnd = 0x007F7F7F;                          /* BGND */
-       hw->bgnd_wb = 0;                                /* BGND_WB */
+       hw->bgnd_wb = 0;                                /* BGND_WB */
        hw->disp_size = var->yres << 16 | var->xres;    /* DISP SIZE */
        hw->wb_size = 0;                                /* WB SIZE */
        hw->wb_mem_addr = 0;                            /* WB MEM ADDR */
@@ -615,4 +613,3 @@ void fsl_diu_clear_screen(void)
 
        memset(info->screen_base, 0, info->smem_len);
 }
-#endif /* CONFIG_FSL_DIU_FB */