Commit 70426f72 authored by Anton Blanchard's avatar Anton Blanchard Committed by James Bottomley

[PATCH] remove a bogus check in sym2 driver

The sym2 driver has a check for a very broken bios where it seems
devices appear twice. This test is broken on a machine with PCI domains
since busnumber:devfn is not a unique identifier.

When we move to the scsi hotplug interface all this code will go away
but in the short term we need the following fix.
parent 3e0298a4
...@@ -2749,14 +2749,6 @@ if (sym53c8xx) ...@@ -2749,14 +2749,6 @@ if (sym53c8xx)
/* This one is guaranteed by AC to do nothing :-) */ /* This one is guaranteed by AC to do nothing :-) */
if (pci_enable_device(pcidev)) if (pci_enable_device(pcidev))
continue; continue;
/* Some HW as the HP LH4 may report twice PCI devices */
for (i = 0; i < count ; i++) {
if (devtbl[i].s.bus == PciBusNumber(pcidev) &&
devtbl[i].s.device_fn == PciDeviceFn(pcidev))
break;
}
if (i != count) /* Ignore this device if we already have it */
continue;
devp = &devtbl[count]; devp = &devtbl[count];
devp->host_id = SYM_SETUP_HOST_ID; devp->host_id = SYM_SETUP_HOST_ID;
devp->attach_done = 0; devp->attach_done = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment