]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ia64: fix SN2 code for GENERIC builds
authorJesse Barnes <jbarnes@sgi.com>
Thu, 9 Oct 2003 06:39:48 +0000 (23:39 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 9 Oct 2003 06:39:48 +0000 (23:39 -0700)
Don't try to use the sn2 I/O code if we're not on sn2 or we may get into
trouble.  Only makes a difference for generic kernels.

arch/ia64/sn/io/machvec/pci_bus_cvlink.c

index e07fc54ead92114e628aa21a514ca9f1bc891a91..33c3f4b5a8580868a3ff40b3cc21e5d8276e2ae5 100644 (file)
@@ -867,6 +867,9 @@ sn_pci_init (void)
        int i = 0;
        struct pci_controller *controller;
 
+       if (!ia64_platform_is("sn2"))
+           return 0;
+
        /*
         * set pci_raw_ops, etc.
         */