From: Ian Abbott Date: Fri, 12 Apr 2013 12:57:54 +0000 (+0100) Subject: staging: comedi: 8255_pci: check BAR resource type directly X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~70 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fed9fd2cc6ac2b01f928bef3ce62a9d8058f514d;p=pandora-kernel.git staging: comedi: 8255_pci: check BAR resource type directly This driver handles one or more 8255 DIO subdevices mapped contiguously at the start of a PCI BAR resource. The resource may be a portio resource or an mmio resource. The driver currently checks the `is_mmio` member of the matching element of `pci_8255_boards[]` to determine the type of resource. Rather than doing that, get the information straight from the horse's mouth by checking the resource flags of the PCI BAR and eliminate the `is_mmio` member. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed