Commit 6f8f8e4d313a47e3f8aa7eeb5201d1b02ffa0951

Authored by Dave Jones
Committed by James Bottomley
1 parent e481cce8b0

[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 <davej@fedoraproject.org>
Acked-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/scsi/aic7xxx/aic7xxx_pci.c
... ... @@ -692,7 +692,7 @@
692 692 * ID as valid.
693 693 */
694 694 if (ahc_get_pci_function(pci) > 0
695   - && ahc_9005_subdevinfo_valid(vendor, device, subvendor, subdevice)
  695 + && ahc_9005_subdevinfo_valid(device, vendor, subdevice, subvendor)
696 696 && SUBID_9005_MFUNCENB(subdevice) == 0)
697 697 return (NULL);
698 698