aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorIan Abbott <[email protected]>2013-04-12 13:00:49 +0100
committerGreg Kroah-Hartman <[email protected]>2013-04-12 15:12:42 -0700
commitc400c1e1c42d4acff3e1dc0dade184f01b45e8a2 (patch)
treed82b060a79046cb271a1581c24544534365e9f08 /tools/perf/scripts/python
parentfed9fd2cc6ac2b01f928bef3ce62a9d8058f514d (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 <[email protected]> Reviewed-by: H Hartley Sweeten <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions