]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
xen/xenpv: Only add isa for x86 architecture
authorJulien Grall <julien.grall@linaro.org>
Tue, 14 Jan 2014 01:41:11 +0000 (01:41 +0000)
committerJulien Grall <julien.grall@linaro.org>
Sun, 12 Apr 2015 11:08:07 +0000 (12:08 +0100)
isa device doesn't exist on ARM.

sys/dev/xen/xenpv.c

index 607d26982b9f1c203393b4ffea68b7b4a1ed6f96..1ba6a46a54a786a4fd032d65f8cd9e578f0160c0 100644 (file)
@@ -69,8 +69,6 @@ xenpv_probe(device_t dev)
 static int
 xenpv_attach(device_t dev)
 {
-       device_t child;
-
        /*
         * Let our child drivers identify any child devices that they
         * can find.  Once that is done attach any devices that we
@@ -79,12 +77,14 @@ xenpv_attach(device_t dev)
        bus_generic_probe(dev);
        bus_generic_attach(dev);
 
+#if defined(__i386__)
        if (!devclass_get_device(devclass_find("isa"), 0)) {
-               child = BUS_ADD_CHILD(dev, 0, "isa", 0);
+               device_t child = BUS_ADD_CHILD(dev, 0, "isa", 0);
                if (child == NULL)
                        panic("Failed to attach ISA bus.");
                device_probe_and_attach(child);
        }
+#endif
 
        return (0);
 }