[SCSI] mpt2sas: use correct pci_resource_flag for comparison
authorRichard A Lary <rlary@linux.vnet.ibm.com>
Fri, 12 Mar 2010 23:27:06 +0000 (15:27 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 11 Apr 2010 14:23:33 +0000 (09:23 -0500)
commitfc193172e63af2c749e198816a1ee694dd6395e6
tree1b5af76f7ecd59f74b0e2b726309c30c4946faa0
parent4644efabde172808c0a8b6e3f17e4c204a4e52e7
[SCSI] mpt2sas: use correct pci_resource_flag for comparison

This patch replaces incorrect base address space flag with correct IO
resource flag.  Also, performs check of memory resource to validate
resource before using.

Signed-off-by: Richard A Lary <rlary@linux.vnet.ibm.com>
Acked-by: "Desai, Kashyap" <Kashyap.Desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/mpt2sas/mpt2sas_base.c