]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Get 3c59x to compile on non-PCI systems
authorAndrew Morton <akpm@digeo.com>
Mon, 10 Feb 2003 15:37:27 +0000 (07:37 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Mon, 10 Feb 2003 15:37:27 +0000 (07:37 -0800)
Patch from Marc Zyngier <mzyngier@freesurf.fr>

My previous round of EISA hacking left the 3c59x driver unable to
compile on non-PCI systems (that is, EISA only...).

This small patch fixes it.

drivers/net/3c59x.c

index 5432dd2ee6db0df80958d063dd20907637c2847f..f9d764b8a95f1ad2d2d442cc1366cf0104e9d2ac 100644 (file)
     - See http://www.zip.com.au/~akpm/linux/#3c59x-2.3 for more details.
     - Also see Documentation/networking/vortex.txt
 
-   LK1.1.19 10Nov09 Marc Zyngier <maz@wild-wind.fr.eu.org>
+   LK1.1.19 10Nov02 Marc Zyngier <maz@wild-wind.fr.eu.org>
     - EISA sysfs integration.
 */
 
@@ -817,7 +817,11 @@ struct vortex_private {
        u32 power_state[16];
 };
 
+#ifdef CONFIG_PCI
 #define DEVICE_PCI(dev) (((dev)->bus == &pci_bus_type) ? to_pci_dev((dev)) : NULL)
+#else
+#define DEVICE_PCI(dev) NULL
+#endif
 
 #define VORTEX_PCI(vp) (((vp)->gendev) ? DEVICE_PCI((vp)->gendev) : NULL)