put_device(&sdev->sdev_gendev);
 }
 
-static void scsi_device_dev_release_usercontext(struct work_struct *work)
+static void scsi_device_dev_release(struct device *dev)
 {
-       struct scsi_device *sdev;
+       struct scsi_device *sdev = to_scsi_device(dev);
        struct device *parent;
        struct list_head *this, *tmp;
        struct scsi_vpd *vpd_pg80 = NULL, *vpd_pg83 = NULL;
        struct scsi_vpd *vpd_pg0 = NULL, *vpd_pg89 = NULL;
        struct scsi_vpd *vpd_pgb0 = NULL, *vpd_pgb1 = NULL, *vpd_pgb2 = NULL;
        unsigned long flags;
-       struct module *mod;
-
-       sdev = container_of(work, struct scsi_device, ew.work);
-
-       mod = sdev->host->hostt->module;
 
        scsi_dh_release_device(sdev);
 
 
        if (parent)
                put_device(parent);
-       module_put(mod);
-}
-
-static void scsi_device_dev_release(struct device *dev)
-{
-       struct scsi_device *sdp = to_scsi_device(dev);
-
-       /* Set module pointer as NULL in case of module unloading */
-       if (!try_module_get(sdp->host->hostt->module))
-               sdp->host->hostt->module = NULL;
-
-       execute_in_process_context(scsi_device_dev_release_usercontext,
-                                  &sdp->ew);
 }
 
 static struct class sdev_class = {
 
        struct device           sdev_gendev,
                                sdev_dev;
 
-       struct execute_work     ew; /* used to get process context on put */
        struct work_struct      requeue_work;
 
        struct scsi_device_handler *handler;