diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-01-05 03:49:07 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-01-05 03:49:07 +0000 |
commit | 19aa402e682b9178bbf18993885e2c2023442516 (patch) | |
tree | 904e343230fbde1fc886db72fa49b4a8d0fae101 /sys | |
parent | 06b1fae13745b6c26c129cdbd8c84b7fe76edf30 (diff) |
print info in attach before if_attach
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_lii.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/pci/if_lii.c b/sys/dev/pci/if_lii.c index b1790ea0863..059b07dc179 100644 --- a/sys/dev/pci/if_lii.c +++ b/sys/dev/pci/if_lii.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_lii.c,v 1.4 2008/01/04 01:47:55 dlg Exp $ */ +/* $OpenBSD: if_lii.c,v 1.5 2008/01/05 03:49:06 deraadt Exp $ */ /* * Copyright (c) 2007 The NetBSD Foundation. @@ -278,13 +278,11 @@ atl2_attach(struct device *parent, struct device *self, void *aux) ifp->if_init = atl2_init; IFQ_SET_READY(&ifp->if_snd); - if_attach(ifp); - ether_ifattach(ifp); - printf("%s, address %s\n", pci_intr_string(sc->sc_pc, ih), ether_sprintf(sc->sc_ac.ac_enaddr)); - return; + if_attach(ifp); + ether_ifattach(ifp); } int |