From 38696623acbf08decc3e3dffdec95ebe4e520af8 Mon Sep 17 00:00:00 2001 From: mycroft Date: Thu, 3 Nov 1994 20:27:02 +0000 Subject: [PATCH] If CONFIG_INDIRECT, the second arg to the match routine is a softc, not a cfdata. --- sys/sys/device.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/sys/device.h b/sys/sys/device.h index d43b103e1176..ccc151b49122 100644 --- a/sys/sys/device.h +++ b/sys/sys/device.h @@ -1,4 +1,4 @@ -/* $NetBSD: device.h,v 1.4 1994/06/29 06:43:49 cgd Exp $ */ +/* $NetBSD: device.h,v 1.5 1994/11/03 20:27:02 mycroft Exp $ */ /* * Copyright (c) 1992, 1993 @@ -93,7 +93,11 @@ struct cfdata { #define FSTATE_FOUND 1 /* has been found */ #define FSTATE_STAR 2 /* duplicable */ +#ifndef CONFIG_INDIRECT typedef int (*cfmatch_t) __P((struct device *, struct cfdata *, void *)); +#else +typedef int (*cfmatch_t) __P((struct device *, struct device *, void *)); +#endif /* * `configuration' driver (what the machine-independent autoconf uses).