aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/css.c
diff options
context:
space:
mode:
authorPeter Oberparleiter <peter.oberparleiter@de.ibm.com>2009-09-11 04:28:16 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2009-09-11 04:29:36 -0400
commit1da73bc80bdfc9588192a6e6f5a72f8138f7378d (patch)
tree80ae0739bcbb47b4afbcba93402d1432cf87afc4 /drivers/s390/cio/css.c
parent62733e5a5a480a893e56fa6133ae90904d857bc4 (diff)
[S390] cio: consolidate subchannel intparm reset
Ensure that the hardware interruption parameter for a subchannel is reset when the associated subchannel data structure is freed. Signed-off-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio/css.c')
-rw-r--r--drivers/s390/cio/css.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/s390/cio/css.c b/drivers/s390/cio/css.c
index 85d43c6bcb66..40d4b3093b71 100644
--- a/drivers/s390/cio/css.c
+++ b/drivers/s390/cio/css.c
@@ -170,6 +170,9 @@ css_subchannel_release(struct device *dev)
170 170
171 sch = to_subchannel(dev); 171 sch = to_subchannel(dev);
172 if (!cio_is_console(sch->schid)) { 172 if (!cio_is_console(sch->schid)) {
173 /* Reset intparm to zeroes. */
174 sch->config.intparm = 0;
175 cio_commit_config(sch);
173 kfree(sch->lock); 176 kfree(sch->lock);
174 kfree(sch); 177 kfree(sch);
175 } 178 }