]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
xen/xenstore: xs_probe should return BUS_PROBE_NOWILDCARD
authorJulien Grall <julien.grall@linaro.org>
Tue, 14 Jan 2014 01:41:08 +0000 (01:41 +0000)
committerJulien Grall <julien.grall@citrix.com>
Mon, 5 Oct 2015 17:54:37 +0000 (18:54 +0100)
Returning 0 in probe callback means: the driver can use this device. If by any
chance xenstore is the first driver, every new device (which driver unset) will
use xenstore.

sys/dev/xen/xenstore/xenstore.c

index cecea257a9ca28ec0d1629cdf26c39575d8982c6..f3df97dbed6b85b3085aaffe55c9bc3d39722664 100644 (file)
@@ -1124,7 +1124,7 @@ xs_probe(device_t dev)
         * Unconditionally return success.
         */
        device_set_desc(dev, "XenStore");
-       return (0);
+       return (BUS_PROBE_NOWILDCARD);
 }
 
 static void