Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci - Use pci_intr_establish_xname().
details: https://anonhg.NetBSD.org/src/rev/b0ac506fcca1
branches: trunk
changeset: 353501:b0ac506fcca1
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed May 10 02:46:06 2017 +0000
description:
- Use pci_intr_establish_xname().
- Style change.
diffstat:
sys/dev/pci/autri.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r 3df091cb560d -r b0ac506fcca1 sys/dev/pci/autri.c
--- a/sys/dev/pci/autri.c Wed May 10 01:24:32 2017 +0000
+++ b/sys/dev/pci/autri.c Wed May 10 02:46:06 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autri.c,v 1.53 2016/07/07 06:55:41 msaitoh Exp $ */
+/* $NetBSD: autri.c,v 1.54 2017/05/10 02:46:06 msaitoh Exp $ */
/*
* Copyright (c) 2001 SOMEYA Yoshihiko and KUROSAWA Takahiro.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autri.c,v 1.53 2016/07/07 06:55:41 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autri.c,v 1.54 2017/05/10 02:46:06 msaitoh Exp $");
#include "midi.h"
@@ -553,7 +553,8 @@
return;
}
intrstr = pci_intr_string(pc, ih, intrbuf, sizeof(intrbuf));
- sc->sc_ih = pci_intr_establish(pc, ih, IPL_AUDIO, autri_intr, sc);
+ sc->sc_ih = pci_intr_establish_xname(pc, ih, IPL_AUDIO, autri_intr,
+ sc, device_xname(self));
if (sc->sc_ih == NULL) {
aprint_error_dev(sc->sc_dev, "couldn't establish interrupt");
if (intrstr != NULL)
@@ -588,8 +589,7 @@
r = ac97_attach(&codec->host_if, self, &sc->sc_lock);
if (r != 0) {
- aprint_error_dev(sc->sc_dev,
- "can't attach codec (error 0x%X)\n", r);
+ aprint_error_dev(self, "can't attach codec (error 0x%X)\n", r);
return;
}
Home |
Main Index |
Thread Index |
Old Index