linux/drivers/staging/comedi
Ian Abbott c400c1e1c4 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>
2013-04-12 15:12:42 -07:00
..
drivers staging: comedi: amplc_dio200_pci: use pci_ioremap_bar() 2013-04-12 15:12:42 -07:00
kcomedilib staging: comedi: use EXPORT_SYMBOL_GPL() for all exported symbols 2013-04-12 15:09:59 -07:00
comedi_buf.c staging: comedi: use EXPORT_SYMBOL_GPL() for all exported symbols 2013-04-12 15:09:59 -07:00
comedi_compat32.c staging: comedi: Makefile: conditionally compile multi-file core module 2013-01-07 14:51:11 -08:00
comedi_compat32.h
comedi_fops.c staging: comedi: use EXPORT_SYMBOL_GPL() for all exported symbols 2013-04-12 15:09:59 -07:00
comedi_internal.h staging: comedi: change comedi_alloc_board_minor() to return pointer 2013-04-05 14:33:17 -07:00
comedi_pci.c staging: comedi: comedi_pci: dev->board_name is always valid 2013-04-08 11:39:19 -07:00
comedi_pcmcia.c staging: comedi: comedi_pcmcia: allow drivers to use a custom conf_check() 2013-02-05 18:16:19 -08:00
comedi_usb.c staging: comedi: comedi_usb: allow comedi usb drivers to pass a 'context' 2013-02-05 18:07:11 -08:00
comedi.h staging: comedi: deprecate loading firmware with comedi_config 2013-01-17 16:51:46 -08:00
comedidev.h staging: comedi: drivers: refactor comedi_request_region() 2013-04-11 12:47:53 -07:00
comedilib.h
drivers.c staging: comedi: use EXPORT_SYMBOL_GPL() for all exported symbols 2013-04-12 15:09:59 -07:00
Kconfig staging: comedi: amplc_pc263: split out PCI support 2013-04-12 15:12:42 -07:00
Makefile staging: comedi: conditionally build in PCMCIA driver support 2013-01-31 10:38:10 +01:00
proc.c staging: comedi: Makefile: conditionally compile multi-file core module 2013-01-07 14:51:11 -08:00
range.c staging: comedi: use EXPORT_SYMBOL_GPL() for all exported symbols 2013-04-12 15:09:59 -07:00
TODO