projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac399d8
)
virtio_pci_modern: drop an unused function
author
Michael S. Tsirkin
<mst@redhat.com>
Tue, 20 Jan 2015 12:30:52 +0000
(14:30 +0200)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Wed, 21 Jan 2015 05:59:01 +0000
(16:29 +1030)
release function in modern driver is unused:
it's a left-over from when each driver had
to have its own release.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_pci_modern.c
patch
|
blob
|
history
diff --git
a/drivers/virtio/virtio_pci_modern.c
b/drivers/virtio/virtio_pci_modern.c
index 68ebc204e3ea64512915042fa5d3de6ef6e8c50f..f16e462cb4ef35510c5022f56e1b3420582f9ceb 100644
(file)
--- a/
drivers/virtio/virtio_pci_modern.c
+++ b/
drivers/virtio/virtio_pci_modern.c
@@
-489,14
+489,6
@@
static inline int virtio_pci_find_capability(struct pci_dev *dev, u8 cfg_type,
return 0;
}
-static void virtio_pci_release_dev(struct device *_d)
-{
- struct virtio_device *vdev = dev_to_virtio(_d);
- struct virtio_pci_device *vp_dev = to_vp_device(vdev);
-
- kfree(vp_dev);
-}
-
/* This is part of the ABI. Don't screw with it. */
static inline void check_offsets(void)
{