Allow kernels to compile without USELEDS.

From Sergey Svishchev on port-hp700
This commit is contained in:
skrll 2006-09-22 14:08:03 +00:00
parent 57cbe57ef9
commit 47ff53e648
2 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: asp.c,v 1.9 2005/12/11 12:17:24 christos Exp $ */
/* $NetBSD: asp.c,v 1.10 2006/09/22 14:08:03 skrll Exp $ */
/* $OpenBSD: asp.c,v 1.5 2000/02/09 05:04:22 mickey Exp $ */
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: asp.c,v 1.9 2005/12/11 12:17:24 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: asp.c,v 1.10 2006/09/22 14:08:03 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -225,8 +225,10 @@ aspattach(struct device *parent, struct device *self, void *aux)
ga.ga_ether_address, sizeof(ga.ga_ether_address));
bus_space_unmap(ca->ca_iot, ioh, sizeof(ga.ga_ether_address));
#ifdef USELEDS
machine_ledaddr = &sc->sc_trs->asp_cled;
machine_ledword = asp_spus[sc->sc_trs->asp_spu].ledword;
#endif
/* reset ASP */
/* sc->sc_hw->asp_reset = 1; */

View File

@ -1,4 +1,4 @@
/* $NetBSD: gscbus.c,v 1.12 2005/12/11 12:17:24 christos Exp $ */
/* $NetBSD: gscbus.c,v 1.13 2006/09/22 14:08:04 skrll Exp $ */
/* $OpenBSD: gscbus.c,v 1.13 2001/08/01 20:32:04 miod Exp $ */
@ -72,7 +72,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: gscbus.c,v 1.12 2005/12/11 12:17:24 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: gscbus.c,v 1.13 2006/09/22 14:08:04 skrll Exp $");
#define GSCDEBUG
@ -144,8 +144,10 @@ gscattach(struct device *parent, struct device *self, void *aux)
sc->sc_ga = *ga;
#ifdef USELEDS
if (machine_ledaddr)
printf(": %sleds", machine_ledword? "word" : "");
#endif
printf ("\n");