diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-11-14 22:22:33 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-11-14 22:22:33 +0000 |
commit | a17e073af6c0184a6a265fb39cc79462eee6a6af (patch) | |
tree | d59835fc923eb969c5e04b0df6a669ee2c24d4b7 /sys/arch | |
parent | b02c62d32c1b16717ffe70501536ae45c553991e (diff) |
bah, enable the lm87 stuff for G4 even if it does not work
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/macppc/dev/lm87.c | 14 |
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); } |