diff options
| author | Sepherosa Ziehau <sephe@FreeBSD.org> | 2016-08-08 05:57:04 +0000 |
|---|---|---|
| committer | Sepherosa Ziehau <sephe@FreeBSD.org> | 2016-08-08 05:57:04 +0000 |
| commit | e6aeff0c0a405a0f2561e3751b11882bc1a02352 (patch) | |
| tree | 3dea79642110e5cc0739b2f580bcd736db267b68 /sys/dev/etherswitch/arswitch | |
| parent | 124d851acf2147192dc43175eb8ff5e364cdf06b (diff) | |
Notes
Diffstat (limited to 'sys/dev/etherswitch/arswitch')
| -rw-r--r-- | sys/dev/etherswitch/arswitch/arswitch_reg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/etherswitch/arswitch/arswitch_reg.c b/sys/dev/etherswitch/arswitch/arswitch_reg.c index 8569d43945bf..fb6baeb95441 100644 --- a/sys/dev/etherswitch/arswitch/arswitch_reg.c +++ b/sys/dev/etherswitch/arswitch/arswitch_reg.c @@ -232,7 +232,8 @@ arswitch_modifyreg(device_t dev, int addr, int mask, int set) int value; uint16_t phy, reg; - ARSWITCH_LOCK_ASSERT(sc, MA_OWNED); + ARSWITCH_LOCK_ASSERT((struct arswitch_softc *)device_get_softc(dev), + MA_OWNED); arswitch_split_setpage(dev, addr, &phy, ®); |
