diff options
| author | Bill Paul <wpaul@FreeBSD.org> | 2000-12-04 22:46:50 +0000 |
|---|---|---|
| committer | Bill Paul <wpaul@FreeBSD.org> | 2000-12-04 22:46:50 +0000 |
| commit | 031fc810abd6b2e6e7ca1c5dca1e30b0816a0558 (patch) | |
| tree | 666e0b4d2fded5ac285854eee39002f92f92a93a /sys/dev/ti | |
| parent | b884490bc006964586812376b22661a7c18fa136 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ti')
| -rw-r--r-- | sys/dev/ti/if_ti.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c index 1a88f0d687f9..7f6660f5ae48 100644 --- a/sys/dev/ti/if_ti.c +++ b/sys/dev/ti/if_ti.c @@ -1476,6 +1476,9 @@ static int ti_attach(dev) unit = device_get_unit(dev); bzero(sc, sizeof(struct ti_softc)); + mtx_init(&sc->ti_mtx, device_get_nameunit(dev), MTX_DEF); + TI_LOCK(sc); + /* * Map control/status registers. */ @@ -1527,9 +1530,6 @@ static int ti_attach(dev) goto fail; } - mtx_init(&sc->ti_mtx, device_get_nameunit(dev), MTX_DEF); - TI_LOCK(sc); - sc->ti_unit = unit; if (ti_chipinit(sc)) { |
