]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
xen/control: xctlr_probe shoud return BUS_PROBE_NOWILDCARD
authorJulien Grall <julien.grall@linaro.org>
Tue, 14 Jan 2014 01:41:14 +0000 (01:41 +0000)
committerJulien Grall <julien.grall@linaro.org>
Sun, 12 Apr 2015 11:08:03 +0000 (12:08 +0100)
Returning 0 in probe callback means: the driver can use this device. If by any
chance xencontrol is the first driver, every new device (which driver unset)
will use xencontrol.

sys/dev/xen/control/control.c

index 665a5acdbe29e0de14674ee234635bab86543e47..e6dd613be55a89c22d08c0a0f553f20ab814d813 100644 (file)
@@ -498,7 +498,7 @@ xctrl_probe(device_t dev)
 {
        device_set_desc(dev, "Xen Control Device");
 
-       return (0);
+       return (BUS_PROBE_NOWILDCARD);
 }
 
 /**