]> 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@citrix.com>
Sat, 3 Oct 2015 18:37:19 +0000 (19:37 +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 219a3953a24e79801c78029e84e62c55a0f08945..f2851eea65f94148424b3453908b220fa0833e40 100644 (file)
@@ -365,7 +365,7 @@ xctrl_probe(device_t dev)
 {
        device_set_desc(dev, "Xen Control Device");
 
-       return (0);
+       return (BUS_PROBE_NOWILDCARD);
 }
 
 /**