use isa_intr_establish_xname() so this passes the device name

This commit is contained in:
jdolecek 2018-06-24 12:25:33 +00:00
parent e111561b93
commit dd26fc5ed7
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: lpt_acpi.c,v 1.19 2010/03/05 14:00:17 jruoho Exp $ */
/* $NetBSD: lpt_acpi.c,v 1.20 2018/06/24 12:25:33 jdolecek Exp $ */
/*
* Copyright (c) 2002 Jared D. McNeill <jmcneill@invisible.ca>
@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: lpt_acpi.c,v 1.19 2010/03/05 14:00:17 jruoho Exp $");
__KERNEL_RCSID(0, "$NetBSD: lpt_acpi.c,v 1.20 2018/06/24 12:25:33 jdolecek Exp $");
#include <sys/param.h>
#include <sys/device.h>
@ -121,9 +121,9 @@ lpt_acpi_attach(device_t parent, device_t self, void *aux)
lpt_attach_subr(sc);
sc->sc_ih = isa_intr_establish(aa->aa_ic, irq->ar_irq,
sc->sc_ih = isa_intr_establish_xname(aa->aa_ic, irq->ar_irq,
(irq->ar_type == ACPI_EDGE_SENSITIVE) ? IST_EDGE : IST_LEVEL,
IPL_TTY, lptintr, sc);
IPL_TTY, lptintr, sc, device_xname(self));
out:
acpi_resource_cleanup(&res);