From a17e073af6c0184a6a265fb39cc79462eee6a6af Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 14 Nov 2005 22:22:33 +0000 Subject: bah, enable the lm87 stuff for G4 even if it does not work --- sys/arch/macppc/dev/lm87.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'sys') 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); } -- cgit v1.2.3