summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/macppc/dev/lm87.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/sys/arch/macppc/dev/lm87.c b/sys/arch/macppc/dev/lm87.c
index f8951157572..458f74cdc2d 100644
--- a/sys/arch/macppc/dev/lm87.c
+++ b/sys/arch/macppc/dev/lm87.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lm87.c,v 1.1 2005/11/14 21:54:38 kettenis Exp $ */
+/* $OpenBSD: lm87.c,v 1.2 2005/11/14 22:22:32 deraadt Exp $ */
/*
* Copyright (c) 2005 Mark Kettenis
@@ -77,27 +77,17 @@ int
lmenv_match(struct device *parent, void *match, void *aux)
{
struct maci2c_attach_args *ia = aux;
- char compat[32];
-#ifdef notyet
- char name[32];
-#endif
+ char compat[32], name[32];
memset(compat, 0, sizeof compat);
OF_getprop(ia->ia_node, "compatible", &compat, sizeof compat);
if (strcmp(compat, "lm87cimt") == 0)
return (1);
-#ifdef notyet
- /*
- * XXX Doesn't work on Xserve G4 yet, possibly because of i2c
- * bus adressing issues.
- */
-
memset(name, 0, sizeof name);
OF_getprop(ia->ia_node, "name", &name, sizeof name);
if (strcmp(name, "lm87") == 0)
return (1);
-#endif
return (0);
}