diff options
author | Arjan van de Ven <arjan@linux.intel.com> | 2009-01-06 17:42:28 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-06 18:59:26 -0500 |
commit | 3c36aa5ccdf516255ef2eac90dd948da891aa4bd (patch) | |
tree | 7930059e5ba51e0fe58fd902b3622664dcfee749 /drivers/video/aty/aty128fb.c | |
parent | ab5dc372021def8f40b34761babecad0bf868b1c (diff) |
pci: use pci_ioremap_bar() in drivers/video
Use the newly introduced pci_ioremap_bar() function in drivers/video.
pci_ioremap_bar() just takes a pci device and a bar number, with the goal
of making it really hard to get wrong, while also having a central place
to stick sanity checks.
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/aty/aty128fb.c')
-rw-r--r-- | drivers/video/aty/aty128fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/aty/aty128fb.c b/drivers/video/aty/aty128fb.c index 243ea4ab20c8..db16112cf197 100644 --- a/drivers/video/aty/aty128fb.c +++ b/drivers/video/aty/aty128fb.c | |||
@@ -2051,7 +2051,7 @@ static int __devinit aty128_probe(struct pci_dev *pdev, const struct pci_device_ | |||
2051 | 2051 | ||
2052 | /* Virtualize mmio region */ | 2052 | /* Virtualize mmio region */ |
2053 | info->fix.mmio_start = reg_addr; | 2053 | info->fix.mmio_start = reg_addr; |
2054 | par->regbase = ioremap(reg_addr, pci_resource_len(pdev, 2)); | 2054 | par->regbase = pci_ioremap_bar(pdev, 2); |
2055 | if (!par->regbase) | 2055 | if (!par->regbase) |
2056 | goto err_free_info; | 2056 | goto err_free_info; |
2057 | 2057 | ||