summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/dev
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-01-09 01:48:18 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-01-09 01:48:18 +0000
commitbf9a336df020642d6f93df008ff9af0fc1251c04 (patch)
treea89c4c71cfb0f543f82c7cb226b9073fddeb3d89 /sys/arch/macppc/dev
parent943e81ed4c37d5ef0bdd0fedfe58277b0bb5de1d (diff)
skip the darn cereal devices, which i think are just markers for the host chip i think
Diffstat (limited to 'sys/arch/macppc/dev')
-rw-r--r--sys/arch/macppc/dev/maci2c.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/macppc/dev/maci2c.c b/sys/arch/macppc/dev/maci2c.c
index c1af2c470d3..39af02e2cd6 100644
--- a/sys/arch/macppc/dev/maci2c.c
+++ b/sys/arch/macppc/dev/maci2c.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: maci2c.c,v 1.6 2006/01/01 21:30:09 deraadt Exp $ */
+/* $OpenBSD: maci2c.c,v 1.7 2006/01/09 01:48:17 deraadt Exp $ */
/*
* Copyright (c) 2005 Mark Kettenis
@@ -48,8 +48,11 @@ maciic_scan(struct device *self, struct i2cbus_attach_args *iba, void *aux)
ia.ia_name = name;
if (ia.ia_name == NULL &&
OF_getprop(node, "name", &name,
- sizeof name) && name[0])
+ sizeof name) && name[0]) {
+ if (strcmp(name, "cereal") == 0)
+ continue;
ia.ia_name = name;
+ }
if (ia.ia_name)
config_found(self, &ia, iic_print);
}