patch-2.4.22 linux-2.4.22/arch/ppc64/kernel/pci.h
Next file: linux-2.4.22/arch/ppc64/kernel/pci_dma.c
Previous file: linux-2.4.22/arch/ppc64/kernel/pci.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
2003-08-25 04:44:40.000000000 -0700
- Orig file:
linux-2.4.21/arch/ppc64/kernel/pci.h
- Orig date:
2003-06-13 07:51:32.000000000 -0700
diff -urN linux-2.4.21/arch/ppc64/kernel/pci.h linux-2.4.22/arch/ppc64/kernel/pci.h
@@ -71,7 +71,7 @@
static inline struct device_node *pci_device_to_OF_node(struct pci_dev *dev)
{
struct device_node *dn = (struct device_node *)(dev->sysdata);
- if (dn->devfn == dev->devfn && dn->busno == dev->bus->number)
+ if (dn->devfn == dev->devfn && dn->busno == (dev->bus->number&0xff))
return dn; /* fast path. sysdata is good */
else
return fetch_dev_dn(dev);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)