Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 May 2022 23:42:30 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 4942e8df472b - main - pbio: Return BUS_PROBE_DEFAULT from probe instead of 0.
Message-ID:  <202205052342.245NgUch055704@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

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

commit 4942e8df472bdb49e72a8c9b60e8189bdb037b8c
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-05-05 23:39:19 +0000
Commit:     John Baldwin <jhb@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);
 }
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205052342.245NgUch055704>