Register with pmf.
This commit is contained in:
parent
187677b054
commit
b6f836a257
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cgd.c,v 1.69 2010/01/23 18:31:04 bouyer Exp $ */
|
||||
/* $NetBSD: cgd.c,v 1.70 2010/02/11 18:24:48 joerg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
@ -30,7 +30,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.69 2010/01/23 18:31:04 bouyer Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.70 2010/02/11 18:24:48 joerg Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
@ -187,6 +187,9 @@ cgd_attach(device_t parent, device_t self, void *aux)
|
||||
simple_lock_init(&sc->sc_slock);
|
||||
dk_sc_init(&sc->sc_dksc, sc, device_xname(sc->sc_dev));
|
||||
disk_init(&sc->sc_dksc.sc_dkdev, sc->sc_dksc.sc_xname, &cgddkdriver);
|
||||
|
||||
if (!pmf_device_register(self, NULL, NULL))
|
||||
aprint_error_dev(self, "unable to register power management hooks\n");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user