Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/i2c remove spurious warning about duplicate devices ...
details: https://anonhg.NetBSD.org/src/rev/44c2793d2e66
branches: trunk
changeset: 770295:44c2793d2e66
user: macallan <macallan%NetBSD.org@localhost>
date: Tue Oct 11 15:19:09 2011 +0000
description:
remove spurious warning about duplicate devices when using info from MD
code ( like OpenFirmware )
ok jmcneill
diffstat:
sys/dev/i2c/i2c.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diffs (29 lines):
diff -r 41bd2fed2a49 -r 44c2793d2e66 sys/dev/i2c/i2c.c
--- a/sys/dev/i2c/i2c.c Tue Oct 11 15:18:09 2011 +0000
+++ b/sys/dev/i2c/i2c.c Tue Oct 11 15:19:09 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i2c.c,v 1.36 2011/10/03 23:53:04 jmcneill Exp $ */
+/* $NetBSD: i2c.c,v 1.37 2011/10/11 15:19:09 macallan Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i2c.c,v 1.36 2011/10/03 23:53:04 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i2c.c,v 1.37 2011/10/11 15:19:09 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -233,10 +233,6 @@
aprint_error_dev(self,
"WARNING: ignoring bad device address "
"@ 0x%02x\n", addr);
- } else if (ia.ia_addr == addr) {
- aprint_error_dev(self,
- "WARNING: ignoring duplicate device "
- "@ 0x%02x\n", addr);
} else if (sc->sc_devices[addr] == NULL) {
sc->sc_devices[addr] =
config_found_sm_loc(self, "iic", loc, &ia,
Home |
Main Index |
Thread Index |
Old Index