git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
patch-2_6_7-vs1_9_1_12
[linux-2.6.git]
/
drivers
/
s390
/
block
/
dasd_devmap.c
diff --git
a/drivers/s390/block/dasd_devmap.c
b/drivers/s390/block/dasd_devmap.c
index
0fad4d5
..
5ea567e
100644
(file)
--- a/
drivers/s390/block/dasd_devmap.c
+++ b/
drivers/s390/block/dasd_devmap.c
@@
-11,7
+11,7
@@
* functions may not be called from interrupt context. In particular
* dasd_get_device is a no-no from interrupt context.
*
* functions may not be called from interrupt context. In particular
* dasd_get_device is a no-no from interrupt context.
*
- * $Revision: 1.2
7
$
+ * $Revision: 1.2
8
$
*/
#include <linux/config.h>
*/
#include <linux/config.h>
@@
-526,6
+526,9
@@
dasd_delete_device(struct dasd_device *device)
cdev = device->cdev;
device->cdev = NULL;
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);
/* Put ccw_device structure. */
put_device(&cdev->dev);