]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ppc64: fix de4x5 build
authorAndrew Morton <akpm@osdl.org>
Wed, 25 Feb 2004 19:36:50 +0000 (14:36 -0500)
committerChristoph Hellwig <hch@sgi.com>
Wed, 25 Feb 2004 19:36:50 +0000 (14:36 -0500)
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>

It should be _machine, not ppc_machine.

drivers/net/tulip/de4x5.c

index 78ee02e1945141b1125d368fe11a78ff3a4c14ff..90a0fca56f84d7372f7639d0c95438cf5b0831e5 100644 (file)
 #include <asm/byteorder.h>
 #include <asm/unaligned.h>
 #include <asm/uaccess.h>
-#ifdef CONFIG_PPC
+#ifdef CONFIG_PPC_MULTIPLATFORM
 #include <asm/machdep.h>
-#endif /* CONFIG_PPC */
+#endif /* CONFIG_PPC_MULTIPLATFORM */
 
 #include "de4x5.h"
 
@@ -4146,12 +4146,12 @@ get_hw_addr(struct net_device *dev)
     /* If possible, try to fix a broken card - SMC only so far */
     srom_repair(dev, broken);
 
-#ifdef CONFIG_PPC
+#ifdef CONFIG_PPC_MULTIPLATFORM
     /* 
     ** If the address starts with 00 a0, we have to bit-reverse
     ** each byte of the address.
     */
-    if ( (ppc_md.ppc_machine & _MACH_Pmac) &&
+    if ( (_machine & _MACH_Pmac) &&
         (dev->dev_addr[0] == 0) &&
         (dev->dev_addr[1] == 0xa0) )
     {
@@ -4163,7 +4163,7 @@ get_hw_addr(struct net_device *dev)
                    dev->dev_addr[i] = ((x & 0x55) << 1) + ((x & 0xaa) >> 1);
            }
     }
-#endif /* CONFIG_PPC */
+#endif /* CONFIG_PPC_MULTIPLATFORM */
 
     /* Test for a bad enet address */
     status = test_bad_enet(dev, status);