The branch main has been updated by jhb:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=4942e8df472bdb49e72a8c9b60e8189bdb037b8c

commit 4942e8df472bdb49e72a8c9b60e8189bdb037b8c
Author:     John Baldwin <j...@freebsd.org>
AuthorDate: 2022-05-05 23:39:19 +0000
Commit:     John Baldwin <j...@freebsd.org>
CommitDate: 2022-05-05 23:39:19 +0000

    pbio: Return BUS_PROBE_DEFAULT from probe instead of 0.
    
    0 should only be returned from probe in legacy drivers that need to
    preserve softc state between probe and attach.
    
    Differential Revision:  https://reviews.freebsd.org/D35080
---
 sys/dev/pbio/pbio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/pbio/pbio.c b/sys/dev/pbio/pbio.c
index 837b419e298c..516ec3a73408 100644
--- a/sys/dev/pbio/pbio.c
+++ b/sys/dev/pbio/pbio.c
@@ -200,7 +200,7 @@ pbioprobe(device_t dev)
        /* Set all ports to input */
        /* pboutb(scp, PBIO_CFG, 0x9b); */
        bus_release_resource(dev, SYS_RES_IOPORT, rid, scp->res);
-       return (0);
+       return (BUS_PROBE_DEFAULT);
 }
 
 /*

Reply via email to