Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86932
b: refs/heads/master
c: faa582c
h: refs/heads/master
v: v3
  • Loading branch information
Ralph Wuerthner authored and Martin Schwidefsky committed Mar 5, 2008
1 parent 5348e01 commit 7acf7d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 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: fa331ffc56fb8ead0811a89e4a582bbd5f29d714
refs/heads/master: faa582ca8014d2e1ede5568a813fb0e5c3c078df
12 changes: 7 additions & 5 deletions trunk/drivers/s390/crypto/ap_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,10 +490,12 @@ static int ap_device_probe(struct device *dev)
int rc;

ap_dev->drv = ap_drv;
spin_lock_bh(&ap_device_lock);
list_add(&ap_dev->list, &ap_device_list);
spin_unlock_bh(&ap_device_lock);
rc = ap_drv->probe ? ap_drv->probe(ap_dev) : -ENODEV;
if (!rc) {
spin_lock_bh(&ap_device_lock);
list_add(&ap_dev->list, &ap_device_list);
spin_unlock_bh(&ap_device_lock);
}
return rc;
}

Expand Down Expand Up @@ -532,11 +534,11 @@ static int ap_device_remove(struct device *dev)

ap_flush_queue(ap_dev);
del_timer_sync(&ap_dev->timeout);
if (ap_drv->remove)
ap_drv->remove(ap_dev);
spin_lock_bh(&ap_device_lock);
list_del_init(&ap_dev->list);
spin_unlock_bh(&ap_device_lock);
if (ap_drv->remove)
ap_drv->remove(ap_dev);
spin_lock_bh(&ap_dev->lock);
atomic_sub(ap_dev->queue_count, &ap_poll_requests);
spin_unlock_bh(&ap_dev->lock);
Expand Down

0 comments on commit 7acf7d1

Please sign in to comment.