From 849588d14e04caeac7e9282b446b62acbb9a1de7 Mon Sep 17 00:00:00 2001 From: mbalmer Date: Sat, 8 Oct 2011 10:21:16 +0000 Subject: [PATCH] Make this compile again: Use the device_xname() macro to get the devic name. --- sys/dev/pci/if_iwn.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/pci/if_iwn.c b/sys/dev/pci/if_iwn.c index 5a55505a85a0..83897c735e53 100644 --- a/sys/dev/pci/if_iwn.c +++ b/sys/dev/pci/if_iwn.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_iwn.c,v 1.59 2011/10/07 22:42:18 elric Exp $ */ +/* $NetBSD: if_iwn.c,v 1.60 2011/10/08 10:21:16 mbalmer Exp $ */ /* $OpenBSD: if_iwn.c,v 1.96 2010/05/13 09:25:03 damien Exp $ */ /*- @@ -22,7 +22,7 @@ * adapters. */ #include -__KERNEL_RCSID(0, "$NetBSD: if_iwn.c,v 1.59 2011/10/07 22:42:18 elric Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_iwn.c,v 1.60 2011/10/08 10:21:16 mbalmer Exp $"); #define IWN_USE_RBUF /* Use local storage for RX */ #undef IWN_HWCRYPTO /* XXX does not even compile yet */ @@ -4098,7 +4098,7 @@ iwn_set_pslevel(struct iwn_softc *sc, int dtim, int level, int async) return iwn_cmd(sc, IWN_CMD_SET_POWER_MODE, &cmd, sizeof cmd, async); } - int +int iwn5000_runtime_calib(struct iwn_softc *sc) { struct iwn5000_calib_config cmd; @@ -4127,7 +4127,7 @@ iwn_config(struct iwn_softc *sc) error = iwn5000_runtime_calib(sc); if (error != 0) { printf("%s: could not configure runtime calibration\n", - sc->sc_dev.dv_xname); + device_xname(sc->sc_dev)); return error; } }