diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2014-02-17 03:57:21 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2014-02-17 03:57:21 +0000 |
commit | eae2a5ec2ea5cdf347e317aae68058b136e772af (patch) | |
tree | b270880ec5a91fb7326707d706b0a11129270539 /sys/dev/pci | |
parent | 13f6b32d8d6b285ca99f358ef5f3a588b0d6c5f4 (diff) |
use the DEVNAME macro to get the name of the interrupt rather than the
xname lookup by hand. for consistency.
ok jmatthew@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/qla_pci.c | 4 | ||||
-rw-r--r-- | sys/dev/pci/qle.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/qla_pci.c b/sys/dev/pci/qla_pci.c index a869255f483..0b720670f95 100644 --- a/sys/dev/pci/qla_pci.c +++ b/sys/dev/pci/qla_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qla_pci.c,v 1.5 2014/02/06 09:51:42 jmatthew Exp $ */ +/* $OpenBSD: qla_pci.c,v 1.6 2014/02/17 03:57:20 dlg Exp $ */ /* * Copyright (c) 2011 David Gwynne <dlg@openbsd.org> @@ -126,7 +126,7 @@ qla_pci_attach(struct device *parent, struct device *self, void *aux) printf(": %s\n", pci_intr_string(psc->psc_pc, ih)); psc->psc_ih = pci_intr_establish(psc->psc_pc, ih, IPL_BIO, - qla_intr, sc, sc->sc_dev.dv_xname); + qla_intr, sc, DEVNAME(sc)); if (psc->psc_ih == NULL) { printf("%s: unable to establish interrupt\n", DEVNAME(sc)); goto deintr; diff --git a/sys/dev/pci/qle.c b/sys/dev/pci/qle.c index fb2ce677089..da14e377ede 100644 --- a/sys/dev/pci/qle.c +++ b/sys/dev/pci/qle.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qle.c,v 1.6 2014/02/17 03:50:42 dlg Exp $ */ +/* $OpenBSD: qle.c,v 1.7 2014/02/17 03:57:20 dlg Exp $ */ /* * Copyright (c) 2013, 2014 Jonathan Matthew <jmatthew@openbsd.org> @@ -364,7 +364,7 @@ qle_attach(struct device *parent, struct device *self, void *aux) printf(": %s\n", pci_intr_string(sc->sc_pc, ih)); sc->sc_ih = pci_intr_establish(sc->sc_pc, ih, IPL_BIO, - qle_intr, sc, sc->sc_dev.dv_xname); + qle_intr, sc, DEVNAME(sc)); if (sc->sc_ih == NULL) { printf("%s: unable to establish interrupt\n"); goto deintr; |