aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/css.c
diff options
context:
space:
mode:
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}