summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_em_soc.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2016-01-07 04:21:36 +0000
committerdlg <dlg@openbsd.org>2016-01-07 04:21:36 +0000
commitee8f67541b46b368b80105d03bdc6b84ff3e458b (patch)
tree0912689f45baa2529bb8f46c3892372767fe65c6 /sys/dev/pci/if_em_soc.c
parenttweak em to make it mpsafe, both for interrupts and if_start. (diff)
downloadwireguard-openbsd-ee8f67541b46b368b80105d03bdc6b84ff3e458b.tar.xz
wireguard-openbsd-ee8f67541b46b368b80105d03bdc6b84ff3e458b.zip
rename em_softc sc_dv to sc_dev. like ALL OUR OTHER DRIVERS.
Diffstat (limited to 'sys/dev/pci/if_em_soc.c')
-rw-r--r--sys/dev/pci/if_em_soc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/if_em_soc.c b/sys/dev/pci/if_em_soc.c
index 5191bee0456..e9b575b2b6f 100644
--- a/sys/dev/pci/if_em_soc.c
+++ b/sys/dev/pci/if_em_soc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_em_soc.c,v 1.3 2015/03/18 12:04:26 dlg Exp $ */
+/* $OpenBSD: if_em_soc.c,v 1.4 2016/01/07 04:21:36 dlg Exp $ */
/*
* Copyright (c) 2009 Dariusz Swiderski <sfires@sfires.net>
@@ -77,7 +77,7 @@ gcu_miibus_readreg(struct em_hw *hw, int phy, int reg)
if (i >= GCU_MAX_ATTEMPTS) {
printf("%s: phy read timeout: phy %d, reg %d\n",
- sc->sc_dv.dv_xname, phy, reg);
+ sc->sc_dev.dv_xname, phy, reg);
return (0);
}
@@ -87,7 +87,7 @@ gcu_miibus_readreg(struct em_hw *hw, int phy, int reg)
if((data & MDIO_STATUS_STATUS_MASK) != 0) {
printf("%s: unable to read phy %d reg %d\n",
- sc->sc_dv.dv_xname, phy, reg);
+ sc->sc_dev.dv_xname, phy, reg);
return (0);
}
return (uint16_t) (data & MDIO_STATUS_READ_DATA_MASK);
@@ -125,7 +125,7 @@ gcu_miibus_writereg(struct em_hw *hw, int phy, int reg, int val)
if (i >= GCU_MAX_ATTEMPTS) {
printf("%s: phy read timeout: phy %d, reg %d\n",
- sc->sc_dv.dv_xname, phy, reg);
+ sc->sc_dev.dv_xname, phy, reg);
return;
}
}