aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/chp.c
diff options
context:
space:
mode:
authorCornelia Huck <cornelia.huck@de.ibm.com>2007-10-12 10:11:13 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2007-10-12 10:12:58 -0400
commit7c9f4e3aaae020fc674f52393cbac1bdb648bf90 (patch)
tree4c0fee1179144280a791fae0f2c61ac47b353cf1 /drivers/s390/cio/chp.c
parent782e3b3b3804c38d5130c7f21d7ec7bf6709023f (diff)
[S390] cio: rename css to channel_subsystems
Rename css[] to channel_subsystems[] to avoid name clashes. Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio/chp.c')
-rw-r--r--drivers/s390/cio/chp.c14
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. */
56static inline struct channel_path *chpid_to_chp(struct chp_id chpid) 56static 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;
446out_free: 446out_free:
447 kfree(chp); 447 kfree(chp);