]> xenbits.xensource.com Git - people/ssmith/netchannel2-pvops.git/commitdiff
xen/pci: fix register_xen_pci_notifier type
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Fri, 7 Aug 2009 20:19:06 +0000 (13:19 -0700)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Fri, 7 Aug 2009 20:35:59 +0000 (13:35 -0700)
initcall functions return an int error code (0=success).

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
drivers/xen/pci.c

index 65fbe52cc5e239b7ea5b5d6392962d57295373f2..b50548ff33e005fe088cfc1d0916f7c701e01144 100644 (file)
@@ -106,9 +106,9 @@ struct notifier_block device_nb = {
        .notifier_call = xen_pci_notifier,
 };
 
-void __init register_xen_pci_notifier(void)
+static int __init register_xen_pci_notifier(void)
 {
-       bus_register_notifier(&pci_bus_type, &device_nb);
+       return bus_register_notifier(&pci_bus_type, &device_nb);
 }
 
 fs_initcall(register_xen_pci_notifier);