diff options
author | Arjan van de Ven <arjan@linux.intel.com> | 2008-10-21 05:17:51 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-06 13:44:43 -0500 |
commit | 7898aa5c39d159684dad15bab1150b8e77c7aed6 (patch) | |
tree | c02a5087905bb7dd3273c15f8d5ba11037646da0 | |
parent | 1d559e29138834bbcdf34ac072232bf543bfc4e0 (diff) |
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 <arjan@linux.intel.com>
Signed-off-by: Hans J. Koch <hjk@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/uio/uio_cif.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/uio/uio_cif.c b/drivers/uio/uio_cif.c index 57376060b978..c60b8fcf0e3e 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, | |||
57 | info->mem[0].addr = pci_resource_start(dev, 0); | 57 | info->mem[0].addr = pci_resource_start(dev, 0); |
58 | if (!info->mem[0].addr) | 58 | if (!info->mem[0].addr) |
59 | goto out_release; | 59 | goto out_release; |
60 | info->mem[0].internal_addr = ioremap(pci_resource_start(dev, 0), | 60 | info->mem[0].internal_addr = pci_ioremap_bar(dev, 0); |
61 | pci_resource_len(dev, 0)); | ||
62 | if (!info->mem[0].internal_addr) | 61 | if (!info->mem[0].internal_addr) |
63 | goto out_release; | 62 | goto out_release; |
64 | 63 | ||