lpt(4): register NULL pmf handler.
This commit is contained in:
parent
506130b087
commit
ce25e3c5e1
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: lpt_acpi.c,v 1.16 2008/03/07 17:15:51 cube Exp $ */
|
||||
/* $NetBSD: lpt_acpi.c,v 1.17 2008/05/31 14:07:03 jmcneill Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002 Jared D. McNeill <jmcneill@invisible.ca>
|
||||
|
@ -26,7 +26,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: lpt_acpi.c,v 1.16 2008/03/07 17:15:51 cube Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: lpt_acpi.c,v 1.17 2008/05/31 14:07:03 jmcneill Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -100,6 +100,9 @@ lpt_acpi_attach(device_t parent, device_t self, void *aux)
|
|||
|
||||
sc->sc_dev = self;
|
||||
|
||||
if (!pmf_device_register(self, NULL, NULL))
|
||||
aprint_error_dev(self, "couldn't establish power handler\n");
|
||||
|
||||
/* parse resources */
|
||||
rv = acpi_resource_parse(sc->sc_dev, aa->aa_node->ad_handle, "_CRS",
|
||||
&res, &acpi_resource_parse_ops_default);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: lpt_isa.c,v 1.66 2008/03/07 17:15:51 cube Exp $ */
|
||||
/* $NetBSD: lpt_isa.c,v 1.67 2008/05/31 14:07:03 jmcneill Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993, 1994 Charles M. Hannum.
|
||||
|
@ -54,7 +54,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: lpt_isa.c,v 1.66 2008/03/07 17:15:51 cube Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: lpt_isa.c,v 1.67 2008/05/31 14:07:03 jmcneill Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -234,6 +234,9 @@ lpt_isa_attach(device_t parent, device_t self, void *aux)
|
|||
aprint_normal("\n");
|
||||
}
|
||||
|
||||
if (!pmf_device_register(self, NULL, NULL))
|
||||
aprint_error_dev(self, "couldn't establish power handler\n");
|
||||
|
||||
iot = lsc->sc_iot = ia->ia_iot;
|
||||
if (bus_space_map(iot, ia->ia_io[0].ir_addr, LPT_NPORTS, 0, &ioh)) {
|
||||
aprint_normal_dev(self, "can't map i/o space\n");
|
||||
|
|
Loading…
Reference in New Issue