aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/geode/lxfb_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/geode/lxfb_core.c')
-rw-r--r--drivers/video/geode/lxfb_core.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/video/geode/lxfb_core.c b/drivers/video/geode/lxfb_core.c
index eb6b88171538..a1d14e0c3aa9 100644
--- a/drivers/video/geode/lxfb_core.c
+++ b/drivers/video/geode/lxfb_core.c
@@ -366,12 +366,9 @@ static int __init lxfb_map_video_memory(struct fb_info *info,
366 if (par->df_regs == NULL) 366 if (par->df_regs == NULL)
367 return ret; 367 return ret;
368 368
369 writel(DC_UNLOCK_CODE, par->dc_regs + DC_UNLOCK); 369 write_dc(par, DC_UNLOCK, DC_UNLOCK_CODE);
370 370 write_dc(par, DC_PHY_MEM_OFFSET, info->fix.smem_start & 0xFF000000);
371 writel(info->fix.smem_start & 0xFF000000, 371 write_dc(par, DC_UNLOCK, 0);
372 par->dc_regs + DC_PHY_MEM_OFFSET);
373
374 writel(0, par->dc_regs + DC_UNLOCK);
375 372
376 dev_info(&dev->dev, "%d KB of video memory at 0x%lx\n", 373 dev_info(&dev->dev, "%d KB of video memory at 0x%lx\n",
377 info->fix.smem_len / 1024, info->fix.smem_start); 374 info->fix.smem_len / 1024, info->fix.smem_start);