patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / drivers / s390 / block / dasd_devmap.c
index 0fad4d5..5ea567e 100644 (file)
@@ -11,7 +11,7 @@
  * functions may not be called from interrupt context. In particular
  * dasd_get_device is a no-no from interrupt context.
  *
- * $Revision: 1.27 $
+ * $Revision: 1.28 $
  */
 
 #include <linux/config.h>
@@ -526,6 +526,9 @@ dasd_delete_device(struct dasd_device *device)
        cdev = device->cdev;
        device->cdev = NULL;
 
+       /* Disconnect dasd_devmap structure from ccw_device structure. */
+       cdev->dev.driver_data = NULL;
+
        /* Put ccw_device structure. */
        put_device(&cdev->dev);