patch-2.4.8 linux/drivers/net/sungem.c

Next file: linux/drivers/net/sunhme.c
Previous file: linux/drivers/net/starfire.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.7/linux/drivers/net/sungem.c linux/drivers/net/sungem.c
@@ -1,4 +1,4 @@
-/* $Id: sungem.c,v 1.17 2001/06/17 09:22:46 jgarzik Exp $
+/* $Id: sungem.c,v 1.18 2001/08/06 13:34:47 davem Exp $
  * sungem.c: Sun GEM ethernet driver.
  *
  * Copyright (C) 2000, 2001 David S. Miller (davem@redhat.com)
@@ -1576,8 +1576,10 @@
 
 static int __devinit gem_get_device_address(struct gem *gp)
 {
+#if defined(__sparc__) || defined(__powerpc__)
 	struct net_device *dev = gp->dev;
 	struct pci_dev *pdev = gp->pdev;
+#endif
 
 #ifdef __sparc__
 	struct pcidev_cookie *pcp = pdev->sysdata;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)