]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: cb_pcidas64: use pci_ioremap_bar()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 10 Apr 2013 18:28:28 +0000 (11:28 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Apr 2013 19:54:34 +0000 (12:54 -0700)
commitc71b2e52a0fb895ad709dbe8caec3dfd2a612c04
tree8663123971751fb14da65dbaa3c81ae795a7fa2b
parent8b46d7da7f5e869a39b81c3d2193e88b1b52fc99
staging: comedi: cb_pcidas64: 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.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/cb_pcidas64.c