summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2007-10-08 03:10:59 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2007-10-08 03:10:59 +0000
commitd0c845c7b1227d01bb96b1352d94bfa7cf9955b4 (patch)
treeec3c723970b6f1f0dfaaf93bcc445a58a7fd6d8d /sys/dev
parentc11fa47ec97b2c7a1e5cc668be1fe99ae4409a26 (diff)
Don't skip EEPROMs in ofw i2c scan,
match on sparc64 SPD name in spdmem. Tested on a V120. ok deraadt@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/i2c/spdmem.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/i2c/spdmem.c b/sys/dev/i2c/spdmem.c
index 39136b3cd7b..662071b8873 100644
--- a/sys/dev/i2c/spdmem.c
+++ b/sys/dev/i2c/spdmem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spdmem.c,v 1.3 2007/10/08 01:40:09 jsg Exp $ */
+/* $OpenBSD: spdmem.c,v 1.4 2007/10/08 03:10:58 jsg Exp $ */
/* $NetBSD: spdmem.c,v 1.3 2007/09/20 23:09:59 xtraeme Exp $ */
/*
@@ -198,7 +198,8 @@ spdmem_match(struct device *parent, void *match, void *aux)
{
struct i2c_attach_args *ia = aux;
- if (strcmp(ia->ia_name, "spd") == 0)
+ if (strcmp(ia->ia_name, "spd") == 0 ||
+ strcmp(ia->ia_name, "at34c02") == 0)
return (1);
return (0);
}