[PATCH] PCI: Make pci_claim_resource __devinit

Greg KH
2005-03-04T22:17:19Z

ChangeSet 1.1998.11.10, 2005/02/07 14:38:32-08:00, matthew@wil.cx

[PATCH] PCI: Make pci_claim_resource __devinit

ia64 calls pci_claim_resource() from pcibios_fixup_bus(), which is
__devinit, so pci_claim_resource() needs to be __devinit too.

Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>

drivers/pci/setup-res.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -Nru a/drivers/pci/setup-res.c b/drivers/pci/setup-res.c
--- a/drivers/pci/setup-res.c 2005-03-04 12:43:06 -08:00
+++ b/drivers/pci/setup-res.c 2005-03-04 12:43:06 -08:00
@@ -90,7 +90,7 @@
new & ~PCI_REGION_FLAG_MASK));
}

-int __init
+int __devinit
pci_claim_resource(struct pci_dev *dev, int resource)
{
struct resource *res = &dev->resource[resource];