remove spurious warning about duplicate devices when using info from MD

code ( like OpenFirmware )
ok jmcneill
This commit is contained in:
macallan 2011-10-11 15:19:09 +00:00
parent 3990e5f3ce
commit eb069a115e
1 changed files with 2 additions and 6 deletions

View File

@ -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 self, void *aux)
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,