patch-2.4.27 linux-2.4.27/arch/alpha/kernel/sys_eiger.c
Next file: linux-2.4.27/arch/alpha/kernel/sys_takara.c
Previous file: linux-2.4.27/Makefile
Back to the patch index
Back to the overall index
- Lines: 41
- Date:
2004-08-07 16:26:04.543342216 -0700
- Orig file:
linux-2.4.26/arch/alpha/kernel/sys_eiger.c
- Orig date:
2001-10-12 15:35:53.000000000 -0700
diff -urN linux-2.4.26/arch/alpha/kernel/sys_eiger.c linux-2.4.27/arch/alpha/kernel/sys_eiger.c
@@ -193,27 +193,20 @@
case 0x0f: bridge_count = 4; break; /* 4 */
};
- /* Check first for the built-in bridges on hose 0. */
- if (hose->index == 0
- && PCI_SLOT(dev->bus->self->devfn) > 20-bridge_count) {
- slot = PCI_SLOT(dev->devfn);
- } else {
- /* Must be a card-based bridge. */
- do {
- /* Check for built-in bridges on hose 0. */
- if (hose->index == 0
- && (PCI_SLOT(dev->bus->self->devfn)
- > 20 - bridge_count)) {
- slot = PCI_SLOT(dev->devfn);
- break;
- }
- pin = bridge_swizzle(pin, PCI_SLOT(dev->devfn));
-
- /* Move up the chain of bridges. */
- dev = dev->bus->self;
- /* Slot of the next bridge. */
+ slot = PCI_SLOT(dev->devfn);
+ while (dev->bus->self) {
+ /* Check for built-in bridges on hose 0. */
+ if (hose->index == 0
+ && (PCI_SLOT(dev->bus->self->devfn)
+ > 20 - bridge_count)) {
slot = PCI_SLOT(dev->devfn);
- } while (dev->bus->self);
+ break;
+ }
+ /* Must be a card-based bridge. */
+ pin = bridge_swizzle(pin, PCI_SLOT(dev->devfn));
+
+ /* Move up the chain of bridges. */
+ dev = dev->bus->self;
}
*pinp = pin;
return slot;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)