Make this compile again.
This commit is contained in:
parent
7f102f3ada
commit
f2fa8d82cf
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: wd.c,v 1.352 2007/12/11 01:52:18 jmcneill Exp $ */
|
||||
/* $NetBSD: wd.c,v 1.353 2007/12/11 02:02:31 jmcneill Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998, 2001 Manuel Bouyer. All rights reserved.
|
||||
|
@ -66,7 +66,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.352 2007/12/11 01:52:18 jmcneill Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.353 2007/12/11 02:02:31 jmcneill Exp $");
|
||||
|
||||
#include "opt_ata.h"
|
||||
|
||||
|
@ -139,7 +139,10 @@ int wdactivate(struct device *, enum devact);
|
|||
int wdprint(void *, char *);
|
||||
void wdperror(const struct wd_softc *);
|
||||
|
||||
#if notyet
|
||||
static bool wd_suspend(device_t);
|
||||
static int wd_standby(struct wd_softc *, int);
|
||||
#endif
|
||||
|
||||
CFATTACH_DECL(wd, sizeof(struct wd_softc),
|
||||
wdprobe, wdattach, wddetach, wdactivate);
|
||||
|
@ -191,7 +194,6 @@ void __wdstart(struct wd_softc*, struct buf *);
|
|||
void wdrestart(void *);
|
||||
void wddone(void *);
|
||||
int wd_get_params(struct wd_softc *, u_int8_t, struct ataparams *);
|
||||
static int wd_standby(struct wd_softc *, int);
|
||||
int wd_flushcache(struct wd_softc *, int);
|
||||
|
||||
int wd_getcache(struct wd_softc *, int *);
|
||||
|
@ -423,22 +425,22 @@ wdattach(struct device *parent, struct device *self, void *aux)
|
|||
/* Discover wedges on this disk. */
|
||||
dkwedge_discover(&wd->sc_dk);
|
||||
|
||||
if (!pmf_device_register(self, wd_suspend, NULL))
|
||||
if (!pmf_device_register(self, NULL, NULL))
|
||||
aprint_error_dev(self, "couldn't establish power handler\n");
|
||||
}
|
||||
|
||||
#if notyet
|
||||
static bool
|
||||
wd_suspend(device_t dv)
|
||||
{
|
||||
#if notyet
|
||||
struct wd_softc *sc = device_private(dv);
|
||||
|
||||
wd_flushcache(sc, AT_WAIT | AT_POLL);
|
||||
wd_standby(sc, AT_WAIT | AT_POLL);
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
int
|
||||
wdactivate(struct device *self, enum devact act)
|
||||
|
@ -1868,6 +1870,7 @@ wd_setcache(struct wd_softc *wd, int bits)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#if notyet
|
||||
static int
|
||||
wd_standby(struct wd_softc *wd, int flags)
|
||||
{
|
||||
|
@ -1896,6 +1899,7 @@ wd_standby(struct wd_softc *wd, int flags)
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
int
|
||||
wd_flushcache(struct wd_softc *wd, int flags)
|
||||
|
|
Loading…
Reference in New Issue