s390 (2/4): dasd driver.
Subsystems (2)
PATCH 1/1 s390 (2/4): dasd driver.
[PATCH] s390: dasd driver.
From: Martin Schwidefsky <[email protected]>
dasd device driver changes:
- Reset pointer from ccw device to dasd_devmap on device removal.
diffstat:
drivers/s390/block/dasd_devmap.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletion(-)
drivers/s390/block/dasd_devmap.c +4 -1
@@ -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 @@ 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);