s390/ccwgroup: set_online return error when already online
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Fri, 9 Nov 2012 13:33:06 +0000 (14:33 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 23 Nov 2012 10:14:34 +0000 (11:14 +0100)
commitcff971026d7c19f67f9312e753bb06f18b6cdae7
tree71f7dd867568fd3e8681a2eea8af060565ab8d51
parentce6a04ac1b759beafc88dbc443ae5da867579eeb
s390/ccwgroup: set_online return error when already online

Return -EINVAL if set_{on,off}line is called for already {on,off}line
devices. Also return -EINVAL for drivers which do not provide a callback
for set_{on,off}line. This behaviour is now consistent with the one for
ccw devices.

Reported-by: Stefan Raspl <raspl@linux.vnet.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Acked-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/ccwgroup.c