From: H Hartley Sweeten Date: Fri, 18 Jan 2013 17:44:11 +0000 (-0700) Subject: staging: comedi: addi_apci_16xx: simplify PCI bar reading X-Git-Tag: v3.9-rc1~127^2~382 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebea8c69d323acfc13f85b067a8608ec10794638;p=pandora-kernel.git staging: comedi: addi_apci_16xx: simplify PCI bar reading The boards supported by this driver do not have an eeprom. Knowing this information allows simplifying the code that reads the PCI bars to get the iobase addresses. The only 'iobase' actually used by this driver is found in PCI bar 0. Don't bother reading the other PCI bars. Also, since 'dw_AiBase' is not ioremap'ed we can remove the check and iounmap in the detach. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed