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