diff options
Diffstat (limited to 'drivers/video/riva')
-rw-r--r-- | drivers/video/riva/fbdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/riva/fbdev.c b/drivers/video/riva/fbdev.c index 4e8c4e9d4..82c916d8a 100644 --- a/drivers/video/riva/fbdev.c +++ b/drivers/video/riva/fbdev.c @@ -517,8 +517,8 @@ static int __devinit rivafb_init_one (struct pci_dev *pd, rinfo->riva.Architecture = rci->arch_rev; rinfo->pd = pd; - rinfo->base0_region_size = pci_resource_start (pd, 0); - rinfo->base1_region_size = pci_resource_start (pd, 1); + rinfo->base0_region_size = pci_resource_len (pd, 0); + rinfo->base1_region_size = pci_resource_len (pd, 1); assert (rinfo->base0_region_size >= 0x00800000); /* from GGI */ assert (rinfo->base0_region_size >= 0x01000000); /* from GGI */ |