From: Dave Jones Date: Thu, 5 Sep 2013 02:33:09 +0000 (-0400) Subject: [SCSI] aic7xxx: fix swapped arguments in ahc_find_pci_device X-Git-Tag: Ubuntu-snapdragon-4.4.0-1050.54~11700^2~26 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=6f8f8e4d313a47e3f8aa7eeb5201d1b02ffa0951;p=mirror_ubuntu-artful-kernel.git [SCSI] aic7xxx: fix swapped arguments in ahc_find_pci_device The prototype for ahc_9005_subdevinfo_valid shows that the caller has the arguments in the wrong order. 637 ahc_9005_subdevinfo_valid(uint16_t device, uint16_t vendor, 638 uint16_t subdevice, uint16_t subvendor) Signed-off-by: Dave Jones Acked-by: Hannes Reinecke Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/aic7xxx/aic7xxx_pci.c b/drivers/scsi/aic7xxx/aic7xxx_pci.c index 6917b4f5ac9e..22d5a949ec83 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_pci.c +++ b/drivers/scsi/aic7xxx/aic7xxx_pci.c @@ -692,7 +692,7 @@ ahc_find_pci_device(ahc_dev_softc_t pci) * ID as valid. */ if (ahc_get_pci_function(pci) > 0 - && ahc_9005_subdevinfo_valid(vendor, device, subvendor, subdevice) + && ahc_9005_subdevinfo_valid(device, vendor, subdevice, subvendor) && SUBID_9005_MFUNCENB(subdevice) == 0) return (NULL);