[PATCH] PCI: Make pci_claim_resource __devinit

From: Greg KH
Date: Fri Mar 04 2005 - 17:50:21 EST


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

[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@xxxxxx>
Signed-off-by: Greg Kroah-Hartman <greg@xxxxxxxxx>


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];

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/