diff options
author | bde <bde@FreeBSD.org> | 1995-11-09 08:57:10 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-11-09 08:57:10 +0000 |
commit | 10681514df4c49e0325fe5bdf3db63582215379c (patch) | |
tree | 5a237a4c8cad7d7399eb365fc1f31d9eb0bb16f2 /sys/pccard | |
parent | aded75dcc7f6064842d12a20701f44cece2752ec (diff) | |
download | FreeBSD-src-10681514df4c49e0325fe5bdf3db63582215379c.zip FreeBSD-src-10681514df4c49e0325fe5bdf3db63582215379c.tar.gz |
Fixed the types of the apm suspend/resume functions.
Diffstat (limited to 'sys/pccard')
-rw-r--r-- | sys/pccard/pccard.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/pccard/pccard.c b/sys/pccard/pccard.c index f15288c..ed86105 100644 --- a/sys/pccard/pccard.c +++ b/sys/pccard/pccard.c @@ -87,8 +87,8 @@ static void slot_irq_handler(int); * drivers do not need to know about the hooks (or the * data structures). */ -static int slot_suspend(struct slot *sp); -static int slot_resume(struct slot *sp); +static int slot_suspend(void *vsp); +static int slot_resume(void *vsp); static struct apmhook s_hook[MAXSLOT]; /* APM suspend */ static struct apmhook r_hook[MAXSLOT]; /* APM resume */ #endif /* NAPM > 0 */ @@ -302,9 +302,10 @@ struct pccard_dev *devp; */ #if NAPM > 0 static int -slot_suspend(struct slot *sp) +slot_suspend(void *vsp) { struct pccard_dev *dp; +struct slot *sp = vsp; for (dp = sp->devices; dp; dp = dp->next) (void)dp->drv->suspend(dp); @@ -312,9 +313,10 @@ struct pccard_dev *dp; return(0); } static int -slot_resume(struct slot *sp) +slot_resume(void *vsp) { struct pccard_dev *dp; +struct slot *sp = vsp; sp->cinfo->power(sp); if (sp->irq) |