summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authornsouch <nsouch@FreeBSD.org>1998-11-09 22:22:01 +0000
committernsouch <nsouch@FreeBSD.org>1998-11-09 22:22:01 +0000
commit14bfbe61c49693948f419156d9d99f794e9f1aed (patch)
treeca0594f20d1be842ba92a80bce58d6a769ca718b /sys
parentac5250cdc3856c0f1fc8d709d460c1ddea49d4e6 (diff)
downloadFreeBSD-src-14bfbe61c49693948f419156d9d99f794e9f1aed.zip
FreeBSD-src-14bfbe61c49693948f419156d9d99f794e9f1aed.tar.gz
Release the ppbus when probe fails.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ppbus/lpbb.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/ppbus/lpbb.c b/sys/dev/ppbus/lpbb.c
index 30b48fc..39c43f0 100644
--- a/sys/dev/ppbus/lpbb.c
+++ b/sys/dev/ppbus/lpbb.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: lpbb.c,v 1.1 1998/10/31 11:35:21 nsouch Exp $
*
*/
@@ -277,8 +277,11 @@ static int lpbb_detect(struct lpbb_softc *sc)
setSCL(sc, 1);
if ((ppb_rstr(&sc->lpbb_dev) & I2CKEY) ||
- ((ppb_rstr(&sc->lpbb_dev) & ALIM) != ALIM))
+ ((ppb_rstr(&sc->lpbb_dev) & ALIM) != ALIM)) {
+
+ ppb_release_bus(&sc->lpbb_dev);
return (0);
+ }
ppb_release_bus(&sc->lpbb_dev);
OpenPOWER on IntegriCloud