aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/twe
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2009-08-20 19:17:53 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2009-08-20 19:17:53 +0000
commita56fe095f0d5fb20fc70b784acb0cd2d367d3e79 (patch)
treeee9b2a74c07c732ee357d4810494c3b6aecd6e71 /sys/dev/twe
parent497e910cd321dbdc45c010417bb7079365234fcf (diff)
downloadsrc-a56fe095f0d5fb20fc70b784acb0cd2d367d3e79.tar.gz
src-a56fe095f0d5fb20fc70b784acb0cd2d367d3e79.zip
Temporarily revert the new-bus locking for 8.0 release. It will be
reintroduced after HEAD is reopened for commits by re@. Approved by: re (kib), attilio
Notes
Notes: svn path=/head/; revision=196403
Diffstat (limited to 'sys/dev/twe')
-rw-r--r--sys/dev/twe/twe.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/dev/twe/twe.c b/sys/dev/twe/twe.c
index 2641fae5e852..59b5027adac9 100644
--- a/sys/dev/twe/twe.c
+++ b/sys/dev/twe/twe.c
@@ -294,10 +294,8 @@ twe_init(struct twe_softc *sc)
/*
* Scan for drives
*/
- newbus_xlock();
for (i = 0; i < TWE_MAX_UNITS; i++)
twe_add_unit(sc, i);
- newbus_xunlock();
/*
* Initialise connection with controller.
@@ -623,15 +621,11 @@ twe_ioctl(struct twe_softc *sc, int ioctlcmd, void *addr)
break;
case TWEIO_ADD_UNIT:
- newbus_xlock();
error = twe_add_unit(sc, td->td_unit);
- newbus_xunlock();
break;
case TWEIO_DEL_UNIT:
- newbus_xlock();
error = twe_del_unit(sc, td->td_unit);
- newbus_xunlock();
break;
/* XXX implement ATA PASSTHROUGH */