From: Ian Abbott Date: Fri, 12 Apr 2013 12:00:49 +0000 (+0100) Subject: staging: comedi: amplc_dio200_pci: use pci_ioremap_bar() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~69 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c400c1e1c42d4acff3e1dc0dade184f01b45e8a2;p=pandora-kernel.git 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 Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed