[PATCH] s390 (2/4): dasd driver.
From: Martin Schwidefsky
Date: Wed May 19 2004 - 06:07:22 EST
[PATCH] s390: dasd driver.
From: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>
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(-)
diff -urN linux-2.6/drivers/s390/block/dasd_devmap.c linux-2.6-s390/drivers/s390/block/dasd_devmap.c
--- linux-2.6/drivers/s390/block/dasd_devmap.c Mon May 10 04:32:37 2004
+++ linux-2.6-s390/drivers/s390/block/dasd_devmap.c Wed May 19 12:47:29 2004
@@ -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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/