mirror of
https://github.com/torvalds/linux.git
synced 2024-12-25 12:21:37 +00:00
c400c1e1c4
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> |
||
---|---|---|
.. | ||
drivers | ||
kcomedilib | ||
comedi_buf.c | ||
comedi_compat32.c | ||
comedi_compat32.h | ||
comedi_fops.c | ||
comedi_internal.h | ||
comedi_pci.c | ||
comedi_pcmcia.c | ||
comedi_usb.c | ||
comedi.h | ||
comedidev.h | ||
comedilib.h | ||
drivers.c | ||
Kconfig | ||
Makefile | ||
proc.c | ||
range.c | ||
TODO |