From: Arjan van de Ven Date: Tue, 21 Oct 2008 09:17:51 +0000 (+0200) Subject: UIO: use pci_ioremap_bar() in drivers/uio X-Git-Tag: v2.6.29-rc1~229^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7898aa5c39d159684dad15bab1150b8e77c7aed6;p=platform%2Fkernel%2Flinux-exynos.git UIO: use pci_ioremap_bar() in drivers/uio Use the newly introduced pci_ioremap_bar() function in drivers/uio. 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 Signed-off-by: Hans J. Koch Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/uio/uio_cif.c b/drivers/uio/uio_cif.c index 5737606..c60b8fc 100644 --- a/drivers/uio/uio_cif.c +++ b/drivers/uio/uio_cif.c @@ -57,8 +57,7 @@ static int __devinit hilscher_pci_probe(struct pci_dev *dev, info->mem[0].addr = pci_resource_start(dev, 0); if (!info->mem[0].addr) goto out_release; - info->mem[0].internal_addr = ioremap(pci_resource_start(dev, 0), - pci_resource_len(dev, 0)); + info->mem[0].internal_addr = pci_ioremap_bar(dev, 0); if (!info->mem[0].internal_addr) goto out_release;