[PATCH] fix typo in 2.4.6 for PPC

From: Paul Mackerras (paulus@samba.org)
Date: Wed Jul 04 2001 - 07:04:02 EST


The patch below fixes a typo in the PowerPC code in 2.4.6. Without
this change, people attempting to compile up a kernel for a powermac
will get a compile error.

Paul.

diff -urN linux/arch/ppc/kernel/pmac_pci.c linuxppc_2_4/arch/ppc/kernel/pmac_pci.c
--- linux/arch/ppc/kernel/pmac_pci.c Tue Jul 3 13:38:19 2001
+++ linuxppc_2_4/arch/ppc/kernel/pmac_pci.c Tue Jul 3 15:00:40 2001
@@ -249,7 +249,7 @@
         out_le32(bp->cfg_addr, (1UL << BANDIT_DEVNUM) + PCI_VENDOR_ID);
         udelay(2);
         vendev = in_le32((volatile unsigned int *)bp->cfg_data);
- if (vendev == (PCI_VENDOR_ID_APPLE_BANDIT << 16) +
+ if (vendev == (PCI_DEVICE_ID_APPLE_BANDIT << 16) +
                         PCI_VENDOR_ID_APPLE) {
                 /* read the revision id */
                 out_le32(bp->cfg_addr,
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jul 07 2001 - 21:00:14 EST