From 4d3f510cc96765c29b76a7edbff82a7ac71d27c8 Mon Sep 17 00:00:00 2001 From: dyoung Date: Mon, 22 Mar 2010 22:36:07 +0000 Subject: [PATCH] #if 0 some diagnostic code that compares two bus_space_tag_t's. MI code should not compare an opaque type such as bus_space_tag_t! --- sys/dev/pci/cy82c693.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/cy82c693.c b/sys/dev/pci/cy82c693.c index 97d7dbc196bc..a2970e0ec6de 100644 --- a/sys/dev/pci/cy82c693.c +++ b/sys/dev/pci/cy82c693.c @@ -1,4 +1,4 @@ -/* $NetBSD: cy82c693.c,v 1.6 2008/04/28 20:23:54 martin Exp $ */ +/* $NetBSD: cy82c693.c,v 1.7 2010/03/22 22:36:07 dyoung Exp $ */ /*- * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -35,7 +35,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: cy82c693.c,v 1.6 2008/04/28 20:23:54 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cy82c693.c,v 1.7 2010/03/22 22:36:07 dyoung Exp $"); #include "opt_multiprocessor.h" #include "opt_lockdebug.h" @@ -79,8 +79,10 @@ cy82c693_init(bus_space_tag_t iot) if (cyhc_initialized) { CYHC_UNLOCK(s); +#if 0 /* XXX Comparing bus_space_tag_t is a no-no! */ if (iot != cyhc_handle.cyhc_iot) panic("cy82c693_init"); +#endif return (&cyhc_handle); }