diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-03-29 17:41:34 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-03-29 17:41:34 +0000 |
commit | 39db385c566253b8b3e3fc4bf00808441f47b61c (patch) | |
tree | 9330c44928e3b79d3cb886a25cf59d7659778542 /sys | |
parent | 17f7458c355b251c79ef2f241fd1420a8e36046a (diff) |
ignore various i2c seeproms that sun puts on all their machine parts; ok miod kettenis
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sparc64/dev/ofwi2c.c | 7 |
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); } } |