mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[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 <[email protected]>
Signed-off-by: Martin Schwidefsky <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
9b4554aa21
commit
a0016408f2
1 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* drivers/s390/cio/ccwgroup.c
|
||||
* bus driver for ccwgroup
|
||||
* $Revision: 1.29 $
|
||||
* $Revision: 1.32 $
|
||||
*
|
||||
* Copyright (C) 2002 IBM Deutschland Entwicklung GmbH,
|
||||
* IBM Corporation
|
||||
|
|
@ -274,7 +274,7 @@ ccwgroup_set_online(struct ccwgroup_device *gdev)
|
|||
goto out;
|
||||
}
|
||||
gdrv = to_ccwgroupdrv (gdev->dev.driver);
|
||||
if ((ret = gdrv->set_online(gdev)))
|
||||
if ((ret = gdrv->set_online ? gdrv->set_online(gdev) : 0))
|
||||
goto out;
|
||||
|
||||
gdev->state = CCWGROUP_ONLINE;
|
||||
|
|
@ -300,7 +300,7 @@ ccwgroup_set_offline(struct ccwgroup_device *gdev)
|
|||
goto out;
|
||||
}
|
||||
gdrv = to_ccwgroupdrv (gdev->dev.driver);
|
||||
if ((ret = gdrv->set_offline(gdev)))
|
||||
if ((ret = gdrv->set_offline ? gdrv->set_offline(gdev) : 0))
|
||||
goto out;
|
||||
|
||||
gdev->state = CCWGROUP_OFFLINE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue