summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-03-29 17:41:34 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-03-29 17:41:34 +0000
commit39db385c566253b8b3e3fc4bf00808441f47b61c (patch)
tree9330c44928e3b79d3cb886a25cf59d7659778542 /sys/arch/sparc64/dev
parent17f7458c355b251c79ef2f241fd1420a8e36046a (diff)
ignore various i2c seeproms that sun puts on all their machine parts; ok miod kettenis
Diffstat (limited to 'sys/arch/sparc64/dev')
-rw-r--r--sys/arch/sparc64/dev/ofwi2c.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/sparc64/dev/ofwi2c.c b/sys/arch/sparc64/dev/ofwi2c.c
index bca19895827..f914e69e879 100644
--- a/sys/arch/sparc64/dev/ofwi2c.c
+++ b/sys/arch/sparc64/dev/ofwi2c.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ofwi2c.c,v 1.4 2006/06/14 01:15:19 deraadt Exp $ */
+/* $OpenBSD: ofwi2c.c,v 1.5 2007/03/29 17:41:33 deraadt Exp $ */
/*
* Copyright (c) 2006 Theo de Raadt
@@ -83,6 +83,11 @@ ofwiic_scan(struct device *self, struct i2cbus_attach_args *iba, void *aux)
if (strncmp(ia.ia_name, "i2c-", strlen("i2c-")) == 0)
ia.ia_name += strlen("i2c-");
+ /* skip totally boring devices */
+ if (strcmp(ia.ia_name, "at24c64") == 0 ||
+ strcmp(ia.ia_name, "at34c02") == 0)
+ continue;
+
config_found(self, &ia, iic_print);
}
}