diff options
author | 2006-09-25 16:52:20 -0700 | |
---|---|---|
committer | 2006-10-18 11:36:10 -0700 | |
commit | 3ec6a8d02efd54a66640bd85afa8c162647b56c3 (patch) | |
tree | 7944d301ea555afeca4a18048135c6787e7185fc /drivers/pci/pcie/portdrv_core.c | |
parent | PCI: VIA IRQ quirk behaviour change (diff) | |
download | linux-dev-3ec6a8d02efd54a66640bd85afa8c162647b56c3.tar.xz linux-dev-3ec6a8d02efd54a66640bd85afa8c162647b56c3.zip |
PCI: pcie-check-and-return-bus_register-errors fix
__must_check goes on the declaration, not the definition.
Cc: "Randy.Dunlap" <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to '')
-rw-r--r-- | drivers/pci/pcie/portdrv_core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pci/pcie/portdrv_core.c b/drivers/pci/pcie/portdrv_core.c index bd6615b4d40e..b20a9b81dae2 100644 --- a/drivers/pci/pcie/portdrv_core.c +++ b/drivers/pci/pcie/portdrv_core.c @@ -6,7 +6,6 @@ * Copyright (C) Tom Long Nguyen (tom.l.nguyen@intel.com) */ -#include <linux/compiler.h> #include <linux/module.h> #include <linux/pci.h> #include <linux/kernel.h> @@ -401,7 +400,7 @@ void pcie_port_device_remove(struct pci_dev *dev) pci_disable_msi(dev); } -int __must_check pcie_port_bus_register(void) +int pcie_port_bus_register(void) { return bus_register(&pcie_port_bus_type); } |