aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorKrzysztof Helt <krzysztof.h1@wp.pl>2007-05-08 03:40:12 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-08 14:15:33 -0400
commit4560daaf07ab68bef5e70355d1565b2e0a1a3bcf (patch)
tree62a1c6cc11d6d10917cdd138f64b35d4f10fe1d7 /drivers/video
parent4c7bf38699aed591b6624add40acfa71fe6d902c (diff)
pm2fb: removal of pm2fb_par fields
This patch removes two redundant fields in the pm2fb_par structure. Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Signed-off-by: Antonino Daplas <adaplas@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/pm2fb.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/drivers/video/pm2fb.c b/drivers/video/pm2fb.c
index 5693da5b1ba7..7f4c753b1d89 100644
--- a/drivers/video/pm2fb.c
+++ b/drivers/video/pm2fb.c
@@ -81,8 +81,6 @@ static int lowvsync;
81struct pm2fb_par 81struct pm2fb_par
82{ 82{
83 pm2type_t type; /* Board type */ 83 pm2type_t type; /* Board type */
84 u32 fb_size; /* framebuffer memory size */
85 unsigned char __iomem *v_fb; /* virtual address of frame buffer */
86 unsigned char __iomem *v_regs;/* virtual address of p_regs */ 84 unsigned char __iomem *v_regs;/* virtual address of p_regs */
87 u32 memclock; /* memclock */ 85 u32 memclock; /* memclock */
88 u32 video; /* video flags before blanking */ 86 u32 video; /* video flags before blanking */
@@ -1293,20 +1291,19 @@ static int __devinit pm2fb_probe(struct pci_dev *pdev,
1293 /* Now work out how big lfb is going to be. */ 1291 /* Now work out how big lfb is going to be. */
1294 switch(default_par->mem_config & PM2F_MEM_CONFIG_RAM_MASK) { 1292 switch(default_par->mem_config & PM2F_MEM_CONFIG_RAM_MASK) {
1295 case PM2F_MEM_BANKS_1: 1293 case PM2F_MEM_BANKS_1:
1296 default_par->fb_size=0x200000; 1294 pm2fb_fix.smem_len=0x200000;
1297 break; 1295 break;
1298 case PM2F_MEM_BANKS_2: 1296 case PM2F_MEM_BANKS_2:
1299 default_par->fb_size=0x400000; 1297 pm2fb_fix.smem_len=0x400000;
1300 break; 1298 break;
1301 case PM2F_MEM_BANKS_3: 1299 case PM2F_MEM_BANKS_3:
1302 default_par->fb_size=0x600000; 1300 pm2fb_fix.smem_len=0x600000;
1303 break; 1301 break;
1304 case PM2F_MEM_BANKS_4: 1302 case PM2F_MEM_BANKS_4:
1305 default_par->fb_size=0x800000; 1303 pm2fb_fix.smem_len=0x800000;
1306 break; 1304 break;
1307 } 1305 }
1308 pm2fb_fix.smem_start = pci_resource_start(pdev, 1); 1306 pm2fb_fix.smem_start = pci_resource_start(pdev, 1);
1309 pm2fb_fix.smem_len = default_par->fb_size;
1310 1307
1311 /* Linear frame buffer - request region and map it. */ 1308 /* Linear frame buffer - request region and map it. */
1312 if ( !request_mem_region(pm2fb_fix.smem_start, pm2fb_fix.smem_len, 1309 if ( !request_mem_region(pm2fb_fix.smem_start, pm2fb_fix.smem_len,
@@ -1314,9 +1311,9 @@ static int __devinit pm2fb_probe(struct pci_dev *pdev,
1314 printk(KERN_WARNING "pm2fb: Can't reserve smem.\n"); 1311 printk(KERN_WARNING "pm2fb: Can't reserve smem.\n");
1315 goto err_exit_mmio; 1312 goto err_exit_mmio;
1316 } 1313 }
1317 info->screen_base = default_par->v_fb = 1314 info->screen_base =
1318 ioremap_nocache(pm2fb_fix.smem_start, pm2fb_fix.smem_len); 1315 ioremap_nocache(pm2fb_fix.smem_start, pm2fb_fix.smem_len);
1319 if ( !default_par->v_fb ) { 1316 if ( !info->screen_base ) {
1320 printk(KERN_WARNING "pm2fb: Can't ioremap smem area.\n"); 1317 printk(KERN_WARNING "pm2fb: Can't ioremap smem area.\n");
1321 release_mem_region(pm2fb_fix.smem_start, pm2fb_fix.smem_len); 1318 release_mem_region(pm2fb_fix.smem_start, pm2fb_fix.smem_len);
1322 goto err_exit_mmio; 1319 goto err_exit_mmio;
@@ -1344,7 +1341,7 @@ static int __devinit pm2fb_probe(struct pci_dev *pdev,
1344 goto err_exit_both; 1341 goto err_exit_both;
1345 1342
1346 printk(KERN_INFO "fb%d: %s frame buffer device, memory = %dK.\n", 1343 printk(KERN_INFO "fb%d: %s frame buffer device, memory = %dK.\n",
1347 info->node, info->fix.id, default_par->fb_size / 1024); 1344 info->node, info->fix.id, pm2fb_fix.smem_len / 1024);
1348 1345
1349 /* 1346 /*
1350 * Our driver data 1347 * Our driver data