]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: addi_apci_2032: simplify the PCI bar reading
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 30 Nov 2012 01:16:45 +0000 (18:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Nov 2012 02:05:29 +0000 (18:05 -0800)
commit70ff406599a5debfa6e5ef243e5e093f63a9ed69
tree76ee6d64c0b5ca52b5f9620ceb7d1a0011765f77
parent791c9792ff2d12a02f0ab1c47fd7f7a94828b05b
staging: comedi: addi_apci_2032: simplify the PCI bar reading

The board supported by this driver has a 93c76 eeprom. Knowing this
information allows simplifying the code that reads the PCI bars to
get the iobase address.

Also, since the 'dw_AiBase' is not ioremap'ed we can remove the iounmap
in the detach.

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