From 83ee4751e29cd5a4c22265a5041854f90dd145a6 Mon Sep 17 00:00:00 2001 From: jdolecek Date: Thu, 22 Jan 2004 14:28:57 +0000 Subject: [PATCH] Resurrect "dev" variable from atppc_sc_attach() removed in rev 1.4 (#ifdef ATPPC_DEBUG), so that this compiles with the option set Fixes PR kern/24193 by Paul Shupak --- sys/dev/ic/atppc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/dev/ic/atppc.c b/sys/dev/ic/atppc.c index c8b0956fe191..21f433799fe8 100644 --- a/sys/dev/ic/atppc.c +++ b/sys/dev/ic/atppc.c @@ -1,4 +1,4 @@ -/* $NetBSD: atppc.c,v 1.5 2004/01/22 14:22:20 jdolecek Exp $ */ +/* $NetBSD: atppc.c,v 1.6 2004/01/22 14:28:57 jdolecek Exp $ */ /* * Copyright (c) 2001 Alcove - Nicolas Souchu @@ -149,6 +149,9 @@ atppc_sc_attach(struct atppc_softc * lsc) { /* Adapter used to configure ppbus device */ struct parport_adapter sc_parport_adapter; +#ifdef ATPPC_DEBUG + struct device * dev = (struct device *) lsc; +#endif #ifdef ATPPC_VERBOSE char buf[64]; #endif