diff options
Diffstat (limited to 'drivers/s390/cio/chp.c')
-rw-r--r-- | drivers/s390/cio/chp.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/s390/cio/chp.c b/drivers/s390/cio/chp.c index 920dd71e6434..8ce4ff95cc9c 100644 --- a/drivers/s390/cio/chp.c +++ b/drivers/s390/cio/chp.c | |||
@@ -55,7 +55,7 @@ static wait_queue_head_t cfg_wait_queue; | |||
55 | /* Return channel_path struct for given chpid. */ | 55 | /* Return channel_path struct for given chpid. */ |
56 | static inline struct channel_path *chpid_to_chp(struct chp_id chpid) | 56 | static inline struct channel_path *chpid_to_chp(struct chp_id chpid) |
57 | { | 57 | { |
58 | return css[chpid.cssid]->chps[chpid.id]; | 58 | return channel_subsystems[chpid.cssid]->chps[chpid.id]; |
59 | } | 59 | } |
60 | 60 | ||
61 | /* Set vary state for given chpid. */ | 61 | /* Set vary state for given chpid. */ |
@@ -395,7 +395,7 @@ int chp_new(struct chp_id chpid) | |||
395 | /* fill in status, etc. */ | 395 | /* fill in status, etc. */ |
396 | chp->chpid = chpid; | 396 | chp->chpid = chpid; |
397 | chp->state = 1; | 397 | chp->state = 1; |
398 | chp->dev.parent = &css[chpid.cssid]->device; | 398 | chp->dev.parent = &channel_subsystems[chpid.cssid]->device; |
399 | chp->dev.release = chp_release; | 399 | chp->dev.release = chp_release; |
400 | snprintf(chp->dev.bus_id, BUS_ID_SIZE, "chp%x.%02x", chpid.cssid, | 400 | snprintf(chp->dev.bus_id, BUS_ID_SIZE, "chp%x.%02x", chpid.cssid, |
401 | chpid.id); | 401 | chpid.id); |
@@ -430,18 +430,18 @@ int chp_new(struct chp_id chpid) | |||
430 | device_unregister(&chp->dev); | 430 | device_unregister(&chp->dev); |
431 | goto out_free; | 431 | goto out_free; |
432 | } | 432 | } |
433 | mutex_lock(&css[chpid.cssid]->mutex); | 433 | mutex_lock(&channel_subsystems[chpid.cssid]->mutex); |
434 | if (css[chpid.cssid]->cm_enabled) { | 434 | if (channel_subsystems[chpid.cssid]->cm_enabled) { |
435 | ret = chp_add_cmg_attr(chp); | 435 | ret = chp_add_cmg_attr(chp); |
436 | if (ret) { | 436 | if (ret) { |
437 | sysfs_remove_group(&chp->dev.kobj, &chp_attr_group); | 437 | sysfs_remove_group(&chp->dev.kobj, &chp_attr_group); |
438 | device_unregister(&chp->dev); | 438 | device_unregister(&chp->dev); |
439 | mutex_unlock(&css[chpid.cssid]->mutex); | 439 | mutex_unlock(&channel_subsystems[chpid.cssid]->mutex); |
440 | goto out_free; | 440 | goto out_free; |
441 | } | 441 | } |
442 | } | 442 | } |
443 | css[chpid.cssid]->chps[chpid.id] = chp; | 443 | channel_subsystems[chpid.cssid]->chps[chpid.id] = chp; |
444 | mutex_unlock(&css[chpid.cssid]->mutex); | 444 | mutex_unlock(&channel_subsystems[chpid.cssid]->mutex); |
445 | return ret; | 445 | return ret; |
446 | out_free: | 446 | out_free: |
447 | kfree(chp); | 447 | kfree(chp); |