Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/booke/dev Replace if_attach with if_initial...



details:   https://anonhg.NetBSD.org/src/rev/9f69c152cab2
branches:  trunk
changeset: 335578:9f69c152cab2
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Fri Jan 16 05:50:15 2015 +0000

description:
Replace if_attach with if_initialize and if_register.

diffstat:

 sys/arch/powerpc/booke/dev/pq3etsec.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 62ec56486340 -r 9f69c152cab2 sys/arch/powerpc/booke/dev/pq3etsec.c
--- a/sys/arch/powerpc/booke/dev/pq3etsec.c     Fri Jan 16 05:36:47 2015 +0000
+++ b/sys/arch/powerpc/booke/dev/pq3etsec.c     Fri Jan 16 05:50:15 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pq3etsec.c,v 1.20 2015/01/16 05:36:47 nonaka Exp $     */
+/*     $NetBSD: pq3etsec.c,v 1.21 2015/01/16 05:50:15 nonaka Exp $     */
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -39,7 +39,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pq3etsec.c,v 1.20 2015/01/16 05:36:47 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pq3etsec.c,v 1.21 2015/01/16 05:50:15 nonaka Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -761,8 +761,9 @@
        /*
         * Attach the interface.
         */
-       if_attach(ifp);
+       if_initialize(ifp);
        ether_ifattach(ifp, enaddr);
+       if_register(ifp);
 
        evcnt_attach_dynamic(&sc->sc_ev_rx_stall, EVCNT_TYPE_MISC,
            NULL, xname, "rx stall");



Home | Main Index | Thread Index | Old Index