From: H Hartley Sweeten Date: Wed, 10 Apr 2013 18:30:11 +0000 (-0700) Subject: staging: comedi: 8255_pci: use pci_ioremap_bar() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~93 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43535526367196d7dcf11f563b0e418b1efe00fd;p=pandora-kernel.git staging: comedi: 8255_pci: 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. Refactor the code a bit. The dev->iobase only needs to be set when the board does not use memory mapped I/O. And the 'iobase' passed to subdev_8255_init() is an unsigned long. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed