aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/css.c
diff options
context:
space:
mode:
authorCornelia Huck <huckc@de.ibm.com>2006-01-06 03:19:26 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-06 11:33:52 -0500
commit3b793060e768197d525e892fd1f84dbc8767cada (patch)
tree94b3860f2a5324effb71d2c09aac9ff55e02dcb2 /drivers/s390/cio/css.c
parent88fbf18399bde8f2900cf932acd40733dfa1effa (diff)
[PATCH] s390: Fix missing release function and cosmetic changes
- Use kzalloc() in blacklist.c. - Kill unwanted casts in blacklist.c. - Provide release function for struct channel_subsystem. Signed-off-by: Cornelia Huck <huckc@de.ibm.com> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/s390/cio/css.c')
-rw-r--r--drivers/s390/cio/css.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/s390/cio/css.c b/drivers/s390/cio/css.c
index 9e9d4a157a4c..e565193650c7 100644
--- a/drivers/s390/cio/css.c
+++ b/drivers/s390/cio/css.c
@@ -444,6 +444,15 @@ css_generate_pgid(struct channel_subsystem *css, u32 tod_high)
444 444
445} 445}
446 446
447static void
448channel_subsystem_release(struct device *dev)
449{
450 struct channel_subsystem *css;
451
452 css = to_css(dev);
453 kfree(css);
454}
455
447static inline void __init 456static inline void __init
448setup_css(int nr) 457setup_css(int nr)
449{ 458{
@@ -453,6 +462,7 @@ setup_css(int nr)
453 css[nr]->valid = 1; 462 css[nr]->valid = 1;
454 css[nr]->cssid = nr; 463 css[nr]->cssid = nr;
455 sprintf(css[nr]->device.bus_id, "css%x", nr); 464 sprintf(css[nr]->device.bus_id, "css%x", nr);
465 css[nr]->device.release = channel_subsystem_release;
456 tod_high = (u32) (get_clock() >> 32); 466 tod_high = (u32) (get_clock() >> 32);
457 css_generate_pgid(css[nr], tod_high); 467 css_generate_pgid(css[nr], tod_high);
458} 468}