aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/geode
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/geode')
-rw-r--r--drivers/video/geode/lxfb.h12
-rw-r--r--drivers/video/geode/lxfb_core.c12
2 files changed, 11 insertions, 13 deletions
diff --git a/drivers/video/geode/lxfb.h b/drivers/video/geode/lxfb.h
index 6eac13d0ffb4..0e3cb9191009 100644
--- a/drivers/video/geode/lxfb.h
+++ b/drivers/video/geode/lxfb.h
@@ -8,12 +8,10 @@
8 8
9struct lxfb_par { 9struct lxfb_par {
10 int output; 10 int output;
11 int panel_width;
12 int panel_height;
13 11
14 void __iomem *gp_regs; 12 void __iomem *gp_regs;
15 void __iomem *dc_regs; 13 void __iomem *dc_regs;
16 void __iomem *df_regs; 14 void __iomem *vp_regs;
17}; 15};
18 16
19static inline unsigned int lx_get_pitch(unsigned int xres, int bpp) 17static inline unsigned int lx_get_pitch(unsigned int xres, int bpp)
@@ -374,22 +372,22 @@ static inline void write_dc(struct lxfb_par *par, int reg, uint32_t val)
374 372
375static inline uint32_t read_vp(struct lxfb_par *par, int reg) 373static inline uint32_t read_vp(struct lxfb_par *par, int reg)
376{ 374{
377 return readl(par->df_regs + 8*reg); 375 return readl(par->vp_regs + 8*reg);
378} 376}
379 377
380static inline void write_vp(struct lxfb_par *par, int reg, uint32_t val) 378static inline void write_vp(struct lxfb_par *par, int reg, uint32_t val)
381{ 379{
382 writel(val, par->df_regs + 8*reg); 380 writel(val, par->vp_regs + 8*reg);
383} 381}
384 382
385static inline uint32_t read_fp(struct lxfb_par *par, int reg) 383static inline uint32_t read_fp(struct lxfb_par *par, int reg)
386{ 384{
387 return readl(par->df_regs + 8*reg + VP_FP_START); 385 return readl(par->vp_regs + 8*reg + VP_FP_START);
388} 386}
389 387
390static inline void write_fp(struct lxfb_par *par, int reg, uint32_t val) 388static inline void write_fp(struct lxfb_par *par, int reg, uint32_t val)
391{ 389{
392 writel(val, par->df_regs + 8*reg + VP_FP_START); 390 writel(val, par->vp_regs + 8*reg + VP_FP_START);
393} 391}
394 392
395#endif 393#endif
diff --git a/drivers/video/geode/lxfb_core.c b/drivers/video/geode/lxfb_core.c
index acf1bf64e782..19eabef1077a 100644
--- a/drivers/video/geode/lxfb_core.c
+++ b/drivers/video/geode/lxfb_core.c
@@ -333,7 +333,7 @@ static int __init lxfb_map_video_memory(struct fb_info *info,
333 if (ret) 333 if (ret)
334 return ret; 334 return ret;
335 335
336 ret = pci_request_region(dev, 3, "lxfb-vip"); 336 ret = pci_request_region(dev, 3, "lxfb-vp");
337 337
338 if (ret) 338 if (ret)
339 return ret; 339 return ret;
@@ -360,10 +360,10 @@ static int __init lxfb_map_video_memory(struct fb_info *info,
360 if (par->dc_regs == NULL) 360 if (par->dc_regs == NULL)
361 return ret; 361 return ret;
362 362
363 par->df_regs = ioremap(pci_resource_start(dev, 3), 363 par->vp_regs = ioremap(pci_resource_start(dev, 3),
364 pci_resource_len(dev, 3)); 364 pci_resource_len(dev, 3));
365 365
366 if (par->df_regs == NULL) 366 if (par->vp_regs == NULL)
367 return ret; 367 return ret;
368 368
369 write_dc(par, DC_UNLOCK, DC_UNLOCK_UNLOCK); 369 write_dc(par, DC_UNLOCK, DC_UNLOCK_UNLOCK);
@@ -507,8 +507,8 @@ err:
507 iounmap(par->dc_regs); 507 iounmap(par->dc_regs);
508 pci_release_region(pdev, 2); 508 pci_release_region(pdev, 2);
509 } 509 }
510 if (par->df_regs) { 510 if (par->vp_regs) {
511 iounmap(par->df_regs); 511 iounmap(par->vp_regs);
512 pci_release_region(pdev, 3); 512 pci_release_region(pdev, 3);
513 } 513 }
514 514
@@ -534,7 +534,7 @@ static void lxfb_remove(struct pci_dev *pdev)
534 iounmap(par->dc_regs); 534 iounmap(par->dc_regs);
535 pci_release_region(pdev, 2); 535 pci_release_region(pdev, 2);
536 536
537 iounmap(par->df_regs); 537 iounmap(par->vp_regs);
538 pci_release_region(pdev, 3); 538 pci_release_region(pdev, 3);
539 539
540 pci_set_drvdata(pdev, NULL); 540 pci_set_drvdata(pdev, NULL);