From eb069a115e2e341d012a3ecd359a977b84b034fa Mon Sep 17 00:00:00 2001 From: macallan Date: Tue, 11 Oct 2011 15:19:09 +0000 Subject: [PATCH] remove spurious warning about duplicate devices when using info from MD code ( like OpenFirmware ) ok jmcneill --- sys/dev/i2c/i2c.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sys/dev/i2c/i2c.c b/sys/dev/i2c/i2c.c index b6618b94d080..5dc7f34577ad 100644 --- a/sys/dev/i2c/i2c.c +++ b/sys/dev/i2c/i2c.c @@ -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 -__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 #include @@ -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,