From: H Hartley Sweeten Date: Wed, 10 Apr 2013 18:30:28 +0000 (-0700) Subject: staging: comedi: icp_multi: use pci_ioremap_bar() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~92 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b153c68dce2a213b964505757518405af1372498;p=pandora-kernel.git staging: comedi: icp_multi: use pci_ioremap_bar() Use pci_ioremap_bar() to ioremap the PCI resources. That function just takes the pci device and a bar number. It also has some additional sanity checks to make sure the bar is actually a memory resource. This also makes sure that the entire PCI bar is ioremap'ed instead of assuming the size of the bar. Also, since this driver only uses memory mapped I/O it is not necessary to set the dev->iobase. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed