From 3ee719808f0f3c34de5d3b520adef367a33bb73d Mon Sep 17 00:00:00 2001 From: macallan Date: Mon, 22 Jan 2007 00:10:27 +0000 Subject: [PATCH] of_compatible() returns -1 not 0 when nothing matches. Doh. --- sys/arch/macppc/macppc/autoconf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/macppc/macppc/autoconf.c b/sys/arch/macppc/macppc/autoconf.c index d88cf6bebec9..48688883704b 100644 --- a/sys/arch/macppc/macppc/autoconf.c +++ b/sys/arch/macppc/macppc/autoconf.c @@ -1,4 +1,4 @@ -/* $NetBSD: autoconf.c,v 1.52 2007/01/21 23:59:39 macallan Exp $ */ +/* $NetBSD: autoconf.c,v 1.53 2007/01/22 00:10:27 macallan Exp $ */ /* * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -32,7 +32,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.52 2007/01/21 23:59:39 macallan Exp $"); +__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.53 2007/01/22 00:10:27 macallan Exp $"); #include #include @@ -517,7 +517,7 @@ add_model_specifics(prop_dictionary_t dict) node = OF_finddevice("/"); - if (of_compatible(node, bl_rev_models)) { + if (of_compatible(node, bl_rev_models) != -1) { prop_dictionary_set_bool(dict, "backlight_level_reverted", 1); } }