Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Register iwm(4) with pmf(9).
details: https://anonhg.NetBSD.org/src/rev/ddb2db5fa9c6
branches: trunk
changeset: 337458:ddb2db5fa9c6
user: nonaka <nonaka%NetBSD.org@localhost>
date: Wed Apr 15 05:40:48 2015 +0000
description:
Register iwm(4) with pmf(9).
Patch from Pierre Pronchery.
diffstat:
sys/dev/pci/if_iwm.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 7d87ad748599 -r ddb2db5fa9c6 sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c Wed Apr 15 03:38:50 2015 +0000
+++ b/sys/dev/pci/if_iwm.c Wed Apr 15 05:40:48 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_iwm.c,v 1.29 2015/03/26 14:42:56 nonaka Exp $ */
+/* $NetBSD: if_iwm.c,v 1.30 2015/04/15 05:40:48 nonaka Exp $ */
/* OpenBSD: if_iwm.c,v 1.39 2015/03/23 00:35:19 jsg Exp */
/*
@@ -105,7 +105,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.29 2015/03/26 14:42:56 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.30 2015/04/15 05:40:48 nonaka Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -6616,6 +6616,11 @@
callout_setfunc(&sc->sc_calib_to, iwm_calib_timeout, sc);
//task_set(&sc->init_task, iwm_init_task, sc);
+
+ if (pmf_device_register(dev, NULL, NULL))
+ pmf_class_network_register(dev, ifp);
+ else
+ aprint_error_dev(dev, "couldn't establish power handler\n");
}
static void
Home |
Main Index |
Thread Index |
Old Index