Module Name:    src
Committed By:   pgoyette
Date:           Sat Jun 13 20:27:20 UTC 2009

Modified Files:
        src/sys/dev/i2c: sdtemp.c

Log Message:
No need to set flag=I2C_F_POLL when releasing the bus.  Pointed out
in private Email from njoly@


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/i2c/sdtemp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/i2c/sdtemp.c
diff -u src/sys/dev/i2c/sdtemp.c:1.4 src/sys/dev/i2c/sdtemp.c:1.5
--- src/sys/dev/i2c/sdtemp.c:1.4	Sat Jun 13 19:02:33 2009
+++ src/sys/dev/i2c/sdtemp.c	Sat Jun 13 20:27:19 2009
@@ -1,4 +1,4 @@
-/*      $NetBSD: sdtemp.c,v 1.4 2009/06/13 19:02:33 pgoyette Exp $        */
+/*      $NetBSD: sdtemp.c,v 1.5 2009/06/13 20:27:19 pgoyette Exp $        */
 
 /*
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdtemp.c,v 1.4 2009/06/13 19:02:33 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdtemp.c,v 1.5 2009/06/13 20:27:19 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -182,7 +182,7 @@
 	iic_acquire_bus(sc->sc_tag, 0);
 	if ((error = sdtemp_read_16(sc, SDTEMP_REG_MFG_ID,  &mfgid)) != 0 ||
 	    (error = sdtemp_read_16(sc, SDTEMP_REG_DEV_REV, &devid)) != 0) {
-		iic_release_bus(sc->sc_tag, I2C_F_POLL);
+		iic_release_bus(sc->sc_tag, 0);
 		aprint_error(": attach error %d\n", error);
 		return;
 	}

Reply via email to