BUGFIX: It allocated only 44 bytes for hpcapm while the device needed

764 bytes.

it was really terrible.
This commit is contained in:
takemura 2001-12-30 12:57:41 +00:00
parent 23d158a3e8
commit 936fd137e6

View File

@ -1,4 +1,4 @@
/* $NetBSD: hpcapm.c,v 1.8 2001/09/16 05:32:18 uch Exp $ */
/* $NetBSD: hpcapm.c,v 1.9 2001/12/30 12:57:41 takemura Exp $ */
/*
* Copyright (c) 2000 Takemura Shin
@ -79,10 +79,6 @@ static void hpcapm_cpu_busy(void *);
static void hpcapm_cpu_idle(void *);
static void hpcapm_get_capabilities(void *, u_int *, u_int *);
struct cfattach hpcapm_ca = {
sizeof (struct device), hpcapm_match, hpcapm_attach
};
struct apmhpc_softc {
struct device sc_dev;
void *sc_apmdev;
@ -98,6 +94,10 @@ struct apmhpc_softc {
int minutes_left;
};
struct cfattach hpcapm_ca = {
sizeof (struct apmhpc_softc), hpcapm_match, hpcapm_attach
};
struct apm_accessops hpcapm_accessops = {
hpcapm_disconnect,
hpcapm_enable,