diff options
Diffstat (limited to 'drivers/xen/xen-pciback/vpci.c')
-rw-r--r-- | drivers/xen/xen-pciback/vpci.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/xen/xen-pciback/vpci.c b/drivers/xen/xen-pciback/vpci.c index 4a42cfb0959d..a7785525f253 100644 --- a/drivers/xen/xen-pciback/vpci.c +++ b/drivers/xen/xen-pciback/vpci.c | |||
@@ -12,7 +12,6 @@ | |||
12 | #include "pciback.h" | 12 | #include "pciback.h" |
13 | 13 | ||
14 | #define PCI_SLOT_MAX 32 | 14 | #define PCI_SLOT_MAX 32 |
15 | #define DRV_NAME "xen-pciback" | ||
16 | 15 | ||
17 | struct vpci_dev_data { | 16 | struct vpci_dev_data { |
18 | /* Access to dev_list must be protected by lock */ | 17 | /* Access to dev_list must be protected by lock */ |
@@ -150,9 +149,9 @@ static void __xen_pcibk_release_pci_dev(struct xen_pcibk_device *pdev, | |||
150 | spin_lock_irqsave(&vpci_dev->lock, flags); | 149 | spin_lock_irqsave(&vpci_dev->lock, flags); |
151 | 150 | ||
152 | for (slot = 0; slot < PCI_SLOT_MAX; slot++) { | 151 | for (slot = 0; slot < PCI_SLOT_MAX; slot++) { |
153 | struct pci_dev_entry *e, *tmp; | 152 | struct pci_dev_entry *e; |
154 | list_for_each_entry_safe(e, tmp, &vpci_dev->dev_list[slot], | 153 | |
155 | list) { | 154 | list_for_each_entry(e, &vpci_dev->dev_list[slot], list) { |
156 | if (e->dev == dev) { | 155 | if (e->dev == dev) { |
157 | list_del(&e->list); | 156 | list_del(&e->list); |
158 | found_dev = e->dev; | 157 | found_dev = e->dev; |
@@ -247,7 +246,7 @@ static int __xen_pcibk_get_pcifront_dev(struct pci_dev *pcidev, | |||
247 | return found; | 246 | return found; |
248 | } | 247 | } |
249 | 248 | ||
250 | struct xen_pcibk_backend xen_pcibk_vpci_backend = { | 249 | const struct xen_pcibk_backend xen_pcibk_vpci_backend = { |
251 | .name = "vpci", | 250 | .name = "vpci", |
252 | .init = __xen_pcibk_init_devices, | 251 | .init = __xen_pcibk_init_devices, |
253 | .free = __xen_pcibk_release_devices, | 252 | .free = __xen_pcibk_release_devices, |