diff options
author | Ian Abbott <abbotti@mev.co.uk> | 2013-04-12 13:00:49 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-12 15:12:42 -0700 |
commit | c400c1e1c42d4acff3e1dc0dade184f01b45e8a2 (patch) | |
tree | d82b060a79046cb271a1581c24544534365e9f08 /tools/perf/scripts/python/sched-migration.py | |
parent | fed9fd2cc6ac2b01f928bef3ce62a9d8058f514d (diff) |
staging: comedi: amplc_dio200_pci: use pci_ioremap_bar()
Use `pci_ioremap_bar()` to ioremap the PCI memory resources. That
function just takes the PCI device and a bar index. It also has some
additional sanity checks to make sure the bar is actually a memory
resource.
Eliminate some local variables from `dio200_pcie_board_setup()` and
`dio200_pci_auto_attach()` that were used to hold the results of
`pci_resource_len()` and `pci_resource_start()` that were only used
once. Also eliminate the check that the bar is a memory resource in
`dio200_pcie_board_setup()` as `pci_ioremap_bar()` will do that for us.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions