Module Name: src
Committed By: martin
Date: Fri Apr 5 19:15:08 UTC 2013
Modified Files:
src/sys/dev/pci: if_athn_pci.c
Log Message:
Move interrupt printout past main attach message
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/pci/if_athn_pci.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/dev/pci/if_athn_pci.c
diff -u src/sys/dev/pci/if_athn_pci.c:1.5 src/sys/dev/pci/if_athn_pci.c:1.6
--- src/sys/dev/pci/if_athn_pci.c:1.5 Wed Apr 3 14:20:03 2013
+++ src/sys/dev/pci/if_athn_pci.c Fri Apr 5 19:15:08 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: if_athn_pci.c,v 1.5 2013/04/03 14:20:03 christos Exp $ */
+/* $NetBSD: if_athn_pci.c,v 1.6 2013/04/05 19:15:08 martin Exp $ */
/* $OpenBSD: if_athn_pci.c,v 1.11 2011/01/08 10:02:32 damien Exp $ */
/*-
@@ -22,7 +22,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_athn_pci.c,v 1.5 2013/04/03 14:20:03 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_athn_pci.c,v 1.6 2013/04/05 19:15:08 martin Exp $");
#include "opt_inet.h"
@@ -207,12 +207,13 @@ athn_pci_attach(device_t parent, device_
aprint_error_dev(self, "couldn't map interrupt\n");
goto fail1;
}
- aprint_verbose_dev(self, "interrupting at %s\n", intrstr);
ic->ic_ifp = &sc->sc_if;
if (athn_attach(sc) != 0)
goto fail2;
+ aprint_verbose_dev(self, "interrupting at %s\n", intrstr);
+
if (pmf_device_register(self, athn_pci_suspend, athn_pci_resume)) {
pmf_class_network_register(self, &sc->sc_if);
pmf_device_suspend(self, &sc->sc_qual);