diff options
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/macppc/dev/maci2c.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/dev/ofwi2c.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/macppc/dev/maci2c.c b/sys/arch/macppc/dev/maci2c.c index 39af02e2cd6..4454fdb20bd 100644 --- a/sys/arch/macppc/dev/maci2c.c +++ b/sys/arch/macppc/dev/maci2c.c @@ -1,4 +1,4 @@ -/* $OpenBSD: maci2c.c,v 1.7 2006/01/09 01:48:17 deraadt Exp $ */ +/* $OpenBSD: maci2c.c,v 1.8 2006/02/08 23:15:58 dlg Exp $ */ /* * Copyright (c) 2005 Mark Kettenis @@ -39,9 +39,9 @@ maciic_scan(struct device *self, struct i2cbus_attach_args *iba, void *aux) if (OF_getprop(node, "reg", ®, sizeof reg) != sizeof reg && OF_getprop(node, "i2c-address", ®, sizeof reg) != sizeof reg) continue; + memset(&ia, 0, sizeof ia); ia.ia_tag = iba->iba_tag; ia.ia_addr = (reg >> 1); - ia.ia_name = NULL; memset(name, 0, sizeof name); if (OF_getprop(node, "compatible", &name, sizeof name) && name[0]) diff --git a/sys/arch/sparc64/dev/ofwi2c.c b/sys/arch/sparc64/dev/ofwi2c.c index 1a7107992ef..ee2d01c0c55 100644 --- a/sys/arch/sparc64/dev/ofwi2c.c +++ b/sys/arch/sparc64/dev/ofwi2c.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ofwi2c.c,v 1.1 2006/01/02 01:58:55 deraadt Exp $ */ +/* $OpenBSD: ofwi2c.c,v 1.2 2006/02/08 23:15:58 dlg Exp $ */ /* * Copyright (c) 2006 Theo de Raadt @@ -49,8 +49,8 @@ ofwiic_scan(struct device *self, struct i2cbus_attach_args *iba, void *aux) if (strcmp(name, "i2c-smbus") == 0) { for (node = OF_child(node); node; node = OF_peer(node)) { + memset(&ia, 0, sizeof ia); ia.ia_tag = iba->iba_tag; - ia.ia_name = NULL; memset(name, 0, sizeof name); if (OF_getprop(node, "compatible", &name, sizeof name) && name[0]) { |