Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207857
b: refs/heads/master
c: 7cd4031
h: refs/heads/master
i:
  207855: 80e183f
v: v3
  • Loading branch information
Sebastian Ott authored and Martin Schwidefsky committed Aug 9, 2010
1 parent ac423d1 commit 53d46ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dbedd0ee47313f2a3c94b19346785fcdfa721390
refs/heads/master: 7cd403142d5dbffa354b7dd369b1069e01b1ae19
10 changes: 6 additions & 4 deletions trunk/drivers/s390/cio/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,9 +487,11 @@ static int online_store_handle_offline(struct ccw_device *cdev)
spin_lock_irq(cdev->ccwlock);
ccw_device_sched_todo(cdev, CDEV_TODO_UNREG_EVAL);
spin_unlock_irq(cdev->ccwlock);
} else if (cdev->online && cdev->drv && cdev->drv->set_offline)
return 0;
}
if (cdev->drv && cdev->drv->set_offline)
return ccw_device_set_offline(cdev);
return 0;
return -EINVAL;
}

static int online_store_recog_and_online(struct ccw_device *cdev)
Expand All @@ -506,8 +508,8 @@ static int online_store_recog_and_online(struct ccw_device *cdev)
return -EAGAIN;
}
if (cdev->drv && cdev->drv->set_online)
ccw_device_set_online(cdev);
return 0;
return ccw_device_set_online(cdev);
return -EINVAL;
}

static int online_store_handle_online(struct ccw_device *cdev, int force)
Expand Down

0 comments on commit 53d46ab

Please sign in to comment.