Module Name: src
Committed By: macallan
Date: Tue Oct 11 15:19:09 UTC 2011
Modified Files:
src/sys/dev/i2c: i2c.c
Log Message:
remove spurious warning about duplicate devices when using info from MD
code ( like OpenFirmware )
ok jmcneill
To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sys/dev/i2c/i2c.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/i2c.c
diff -u src/sys/dev/i2c/i2c.c:1.36 src/sys/dev/i2c/i2c.c:1.37
--- src/sys/dev/i2c/i2c.c:1.36 Mon Oct 3 23:53:04 2011
+++ src/sys/dev/i2c/i2c.c Tue Oct 11 15:19:09 2011
@@ -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 @@ iic_attach(device_t parent, device_t sel
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,