diff options
author | Cornelia Huck <cohuck@de.ibm.com> | 2005-11-07 03:59:05 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 10:53:33 -0500 |
commit | a0016408f2428225f1532cbf63ca1c7008e1cc93 (patch) | |
tree | 2454191b8a77b79c7774c3ff143ca4abf6dcd852 /drivers/s390 | |
parent | 9b4554aa21270f5b6fa19a9dd2285f16e11f15f1 (diff) |
[PATCH] s390: ccwgroup online attribute
Make the interface for setting ccw group devices on-/offline consistent with
that for ccw devices: Check if the device driver provided a set_{on,off}line
function and just set the device on-/offline if not.
Signed-off-by: Cornelia Huck <cohuck@de.ibm.com>
Signed-off-by: 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')
-rw-r--r-- | drivers/s390/cio/ccwgroup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/s390/cio/ccwgroup.c b/drivers/s390/cio/ccwgroup.c index dbb3eb0e330b..e7bd7f37f080 100644 --- a/drivers/s390/cio/ccwgroup.c +++ b/drivers/s390/cio/ccwgroup.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * drivers/s390/cio/ccwgroup.c | 2 | * drivers/s390/cio/ccwgroup.c |
3 | * bus driver for ccwgroup | 3 | * bus driver for ccwgroup |
4 | * $Revision: 1.29 $ | 4 | * $Revision: 1.32 $ |
5 | * | 5 | * |
6 | * Copyright (C) 2002 IBM Deutschland Entwicklung GmbH, | 6 | * Copyright (C) 2002 IBM Deutschland Entwicklung GmbH, |
7 | * IBM Corporation | 7 | * IBM Corporation |
@@ -274,7 +274,7 @@ ccwgroup_set_online(struct ccwgroup_device *gdev) | |||
274 | goto out; | 274 | goto out; |
275 | } | 275 | } |
276 | gdrv = to_ccwgroupdrv (gdev->dev.driver); | 276 | gdrv = to_ccwgroupdrv (gdev->dev.driver); |
277 | if ((ret = gdrv->set_online(gdev))) | 277 | if ((ret = gdrv->set_online ? gdrv->set_online(gdev) : 0)) |
278 | goto out; | 278 | goto out; |
279 | 279 | ||
280 | gdev->state = CCWGROUP_ONLINE; | 280 | gdev->state = CCWGROUP_ONLINE; |
@@ -300,7 +300,7 @@ ccwgroup_set_offline(struct ccwgroup_device *gdev) | |||
300 | goto out; | 300 | goto out; |
301 | } | 301 | } |
302 | gdrv = to_ccwgroupdrv (gdev->dev.driver); | 302 | gdrv = to_ccwgroupdrv (gdev->dev.driver); |
303 | if ((ret = gdrv->set_offline(gdev))) | 303 | if ((ret = gdrv->set_offline ? gdrv->set_offline(gdev) : 0)) |
304 | goto out; | 304 | goto out; |
305 | 305 | ||
306 | gdev->state = CCWGROUP_OFFLINE; | 306 | gdev->state = CCWGROUP_OFFLINE; |