Module Name: src Committed By: jakllsch Date: Tue Jan 17 16:28:34 UTC 2012
Modified Files: src/sys/dev/isa: wbsio.c Log Message: Add NULL pmf handlers. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/dev/isa/wbsio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/isa/wbsio.c diff -u src/sys/dev/isa/wbsio.c:1.3 src/sys/dev/isa/wbsio.c:1.4 --- src/sys/dev/isa/wbsio.c:1.3 Wed May 18 01:03:15 2011 +++ src/sys/dev/isa/wbsio.c Tue Jan 17 16:28:33 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: wbsio.c,v 1.3 2011/05/18 01:03:15 dyoung Exp $ */ +/* $NetBSD: wbsio.c,v 1.4 2012/01/17 16:28:33 jakllsch Exp $ */ /* $OpenBSD: wbsio.c,v 1.5 2009/03/29 21:53:52 sthen Exp $ */ /* * Copyright (c) 2008 Mark Kettenis <kette...@openbsd.org> @@ -216,6 +216,9 @@ wbsio_attach(device_t parent, device_t s /* Escape from configuration mode */ wbsio_conf_disable(sc->sc_iot, sc->sc_ioh); + if (!pmf_device_register(self, NULL, NULL)) + aprint_error_dev(self, "couldn't establish power handler\n"); + if (iobase == 0) return;