Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157439
b: refs/heads/master
c: 3b554a1
h: refs/heads/master
i:
  157437: ee356e3
  157435: 801e98d
  157431: 88e459c
  157423: 64938e8
  157407: 264d8e7
  157375: 288a5c4
  157311: a73562f
  157183: c641daa
v: v3
  • Loading branch information
Sebastian Ott authored and Martin Schwidefsky committed Sep 11, 2009
1 parent 1e17c35 commit e056bfb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 6ee4fec6be06f7d138860b37cba58982cc3ccb16
refs/heads/master: 3b554a14f4bdf754ba9d2f64c2b6edf8dafe93b9
7 changes: 4 additions & 3 deletions trunk/drivers/s390/cio/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,11 @@ int ccw_device_is_orphan(struct ccw_device *cdev)

static void ccw_device_unregister(struct ccw_device *cdev)
{
if (test_and_clear_bit(1, &cdev->private->registered))
if (test_and_clear_bit(1, &cdev->private->registered)) {
device_del(&cdev->dev);
/* Release reference from device_initialize(). */
put_device(&cdev->dev);
}
}

static void ccw_device_remove_orphan_cb(struct work_struct *work)
Expand All @@ -319,7 +322,6 @@ static void ccw_device_remove_orphan_cb(struct work_struct *work)
priv = container_of(work, struct ccw_device_private, kick_work);
cdev = priv->cdev;
ccw_device_unregister(cdev);
put_device(&cdev->dev);
/* Release cdev reference for workqueue processing. */
put_device(&cdev->dev);
}
Expand Down Expand Up @@ -1358,7 +1360,6 @@ io_subchannel_remove (struct subchannel *sch)
cdev->private->state = DEV_STATE_NOT_OPER;
spin_unlock_irqrestore(cdev->ccwlock, flags);
ccw_device_unregister(cdev);
put_device(&cdev->dev);
kfree(sch->private);
sysfs_remove_group(&sch->dev.kobj, &io_subchannel_attr_group);
return 0;
Expand Down

0 comments on commit e056bfb

Please sign in to comment.