Module Name: src Committed By: nonaka Date: Fri Jan 16 05:50:15 UTC 2015
Modified Files: src/sys/arch/powerpc/booke/dev: pq3etsec.c Log Message: Replace if_attach with if_initialize and if_register. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/sys/arch/powerpc/booke/dev/pq3etsec.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/arch/powerpc/booke/dev/pq3etsec.c diff -u src/sys/arch/powerpc/booke/dev/pq3etsec.c:1.20 src/sys/arch/powerpc/booke/dev/pq3etsec.c:1.21 --- src/sys/arch/powerpc/booke/dev/pq3etsec.c:1.20 Fri Jan 16 05:36:47 2015 +++ src/sys/arch/powerpc/booke/dev/pq3etsec.c Fri Jan 16 05:50:15 2015 @@ -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 @@ pq3etsec_attach(device_t parent, device_ /* * 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");