diff options
-rw-r--r-- | drivers/xen/pci.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/xen/pci.c b/drivers/xen/pci.c index cef4bafc07dc..02c402b1ed80 100644 --- a/drivers/xen/pci.c +++ b/drivers/xen/pci.c | |||
@@ -96,13 +96,16 @@ static int xen_pci_notifier(struct notifier_block *nb, | |||
96 | r = xen_remove_device(dev); | 96 | r = xen_remove_device(dev); |
97 | break; | 97 | break; |
98 | default: | 98 | default: |
99 | break; | 99 | return NOTIFY_DONE; |
100 | } | 100 | } |
101 | 101 | if (r) | |
102 | return r; | 102 | dev_err(dev, "Failed to %s - passthrough or MSI/MSI-X might fail!\n", |
103 | action == BUS_NOTIFY_ADD_DEVICE ? "add" : | ||
104 | (action == BUS_NOTIFY_DEL_DEVICE ? "delete" : "?")); | ||
105 | return NOTIFY_OK; | ||
103 | } | 106 | } |
104 | 107 | ||
105 | struct notifier_block device_nb = { | 108 | static struct notifier_block device_nb = { |
106 | .notifier_call = xen_pci_notifier, | 109 | .notifier_call = xen_pci_notifier, |
107 | }; | 110 | }; |
108 | 111 | ||