Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 335464
b: refs/heads/master
c: 237242b
h: refs/heads/master
v: v3
  • Loading branch information
Cornelia Huck authored and Rusty Russell committed Nov 9, 2012
1 parent 5048d54 commit 33bbbfd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: f6a79af8f3701b5a0df431a76adee212616154dc
refs/heads/master: 237242bddc99041e15a4ca51b8439657cadaff17
4 changes: 3 additions & 1 deletion trunk/drivers/virtio/virtio.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,10 @@ EXPORT_SYMBOL_GPL(register_virtio_device);

void unregister_virtio_device(struct virtio_device *dev)
{
int index = dev->index; /* save for after device release */

device_unregister(&dev->dev);
ida_simple_remove(&virtio_index_ida, dev->index);
ida_simple_remove(&virtio_index_ida, index);
}
EXPORT_SYMBOL_GPL(unregister_virtio_device);

Expand Down

0 comments on commit 33bbbfd

Please sign in to comment.