Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Also call pmf_class_network_register(9).



details:   https://anonhg.NetBSD.org/src/rev/886807f3dea0
branches:  trunk
changeset: 747080:886807f3dea0
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Tue Sep 01 17:12:42 2009 +0000

description:
Also call pmf_class_network_register(9).

diffstat:

 sys/dev/ic/dp83932.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r f9faf2183ae9 -r 886807f3dea0 sys/dev/ic/dp83932.c
--- a/sys/dev/ic/dp83932.c      Tue Sep 01 17:10:42 2009 +0000
+++ b/sys/dev/ic/dp83932.c      Tue Sep 01 17:12:42 2009 +0000
@@ -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;
 
        /*



Home | Main Index | Thread Index | Old Index