mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Fixed the types of the apm suspend/resume functions.
This commit is contained in:
parent
b9286a3a0b
commit
0f445dae48
1 changed files with 6 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue