Module Name:    src
Committed By:   tsutsui
Date:           Tue Sep  1 17:12:42 UTC 2009

Modified Files:
        src/sys/dev/ic: dp83932.c

Log Message:
Also call pmf_class_network_register(9).


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/ic/dp83932.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/ic/dp83932.c
diff -u src/sys/dev/ic/dp83932.c:1.28 src/sys/dev/ic/dp83932.c:1.29
--- src/sys/dev/ic/dp83932.c:1.28	Tue Sep  1 15:20:53 2009
+++ src/sys/dev/ic/dp83932.c	Tue Sep  1 17:12:42 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: dp83932.c,v 1.28 2009/09/01 15:20:53 tsutsui Exp $	*/
+/*	$NetBSD: dp83932.c,v 1.29 2009/09/01 17:12:42 tsutsui Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dp83932.c,v 1.28 2009/09/01 15:20:53 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dp83932.c,v 1.29 2009/09/01 17:12:42 tsutsui Exp $");
 
 #include "bpfilter.h"
 
@@ -224,7 +224,10 @@
 	 */
 	if (!pmf_device_register1(sc->sc_dev, NULL, NULL, sonic_shutdown))
 		aprint_error_dev(sc->sc_dev,
-		    "WARNING: unable to establish shutdown hook\n");
+		    "couldn't establish power handler\n");
+	else
+		pmf_class_network_register(sc->sc_dev, &sc->sc_ethercom.ec_if);
+
 	return;
 
 	/*

Reply via email to