From c78b078a2ada4c10344507666ff9ab8a69b22d94 Mon Sep 17 00:00:00 2001 From: nonaka Date: Fri, 16 Jan 2015 05:50:15 +0000 Subject: [PATCH] Replace if_attach with if_initialize and if_register. --- sys/arch/powerpc/booke/dev/pq3etsec.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/arch/powerpc/booke/dev/pq3etsec.c b/sys/arch/powerpc/booke/dev/pq3etsec.c index ff42576a4779..e46a484dd9e3 100644 --- a/sys/arch/powerpc/booke/dev/pq3etsec.c +++ b/sys/arch/powerpc/booke/dev/pq3etsec.c @@ -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 -__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 #include @@ -761,8 +761,9 @@ pq3etsec_attach(device_t parent, device_t self, void *aux) /* * 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");