use pci_intr_establish_xname()
This commit is contained in:
parent
bea393bbca
commit
f0dbcfd378
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: auich.c,v 1.151 2017/06/01 02:45:11 chs Exp $ */
|
/* $NetBSD: auich.c,v 1.152 2018/03/24 18:32:13 jdolecek Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2000, 2004, 2005, 2008 The NetBSD Foundation, Inc.
|
* Copyright (c) 2000, 2004, 2005, 2008 The NetBSD Foundation, Inc.
|
||||||
|
@ -111,7 +111,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: auich.c,v 1.151 2017/06/01 02:45:11 chs Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: auich.c,v 1.152 2018/03/24 18:32:13 jdolecek Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
|
@ -538,8 +538,8 @@ map_done:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
intrstr = pci_intr_string(pa->pa_pc, sc->intrh, intrbuf, sizeof(intrbuf));
|
intrstr = pci_intr_string(pa->pa_pc, sc->intrh, intrbuf, sizeof(intrbuf));
|
||||||
sc->sc_ih = pci_intr_establish(pa->pa_pc, sc->intrh, IPL_AUDIO,
|
sc->sc_ih = pci_intr_establish_xname(pa->pa_pc, sc->intrh, IPL_AUDIO,
|
||||||
auich_intr, sc);
|
auich_intr, sc, device_xname(sc->sc_dev));
|
||||||
if (sc->sc_ih == NULL) {
|
if (sc->sc_ih == NULL) {
|
||||||
aprint_error_dev(self, "can't establish interrupt");
|
aprint_error_dev(self, "can't establish interrupt");
|
||||||
if (intrstr != NULL)
|
if (intrstr != NULL)
|
||||||
|
|
Loading…
Reference in New Issue