* 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>
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);