Replace if_attach with if_initialize and if_register.
This commit is contained in:
parent
1296cd7938
commit
c78b078a2a
@ -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_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");
|
||||
|
Loading…
Reference in New Issue
Block a user