aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNick Hibma <n_hibma@FreeBSD.org>1999-05-30 18:46:04 +0000
committerNick Hibma <n_hibma@FreeBSD.org>1999-05-30 18:46:04 +0000
commit2eaf66611196052f8e1bd124a3403e44d88a5ebd (patch)
tree62a3db4d61885da294a9bb375895927a35133752 /sys
parent042d20749251639b54f62a6d2c7f1a66c59d9978 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/umass.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/usb/umass.c b/sys/dev/usb/umass.c
index e1afd8b7c03a7..f2039c878f9f3 100644
--- a/sys/dev/usb/umass.c
+++ b/sys/dev/usb/umass.c
@@ -661,14 +661,13 @@ umass_cam_attach(umass_softc_t *sc)
}
/* umass_cam_detach
+ * detach from the CAM layer
*/
+
static void
umass_cam_detach(umass_softc_t *sc)
{
- /* Detach from CAM layer
- * XXX do we need to delete the device first?
- */
-
+ xpt_async(AC_LOST_DEVICE, sc->path, NULL);
xpt_free_path(sc->path);
xpt_bus_deregister(cam_sim_path(sc->sim));
cam_sim_free(sc->sim, /*free_devq*/TRUE);
@@ -746,7 +745,6 @@ umass_cam_action(struct cam_sim *sim, union ccb *ccb)
DPRINTF(UDMASS_CAM, ("%s: XPT_PATH_INQ\n",
USBDEVNAME(sc->sc_dev)));
- /* information copied from vpo driver. Needs to be checked */
cpi->version_num = 1;
cpi->hba_inquiry = 0;
cpi->target_sprt = 0;