From: Sam Ravnborg Date: Thu, 1 May 2008 11:34:52 +0000 (-0700) Subject: pcmcia: annotate cb_alloc with __ref X-Git-Tag: v2.6.26-rc1~69 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e772d782a6b0f14d491a95445f0ec6767d66fb29;p=linux-2.6-omap-h63xx.git pcmcia: annotate cb_alloc with __ref cb_alloc() uses a function (pci_scan_slot) that will be annotated __devinit. Annotate cb_alloc() with __ref to tell modpost to ignore this reference. Signed-off-by: Sam Ravnborg Cc: Dominik Brodowski Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/pcmcia/cardbus.c b/drivers/pcmcia/cardbus.c index 714baaeb6da..fb2f38dc92c 100644 --- a/drivers/pcmcia/cardbus.c +++ b/drivers/pcmcia/cardbus.c @@ -209,7 +209,7 @@ static void cardbus_assign_irqs(struct pci_bus *bus, int irq) } } -int cb_alloc(struct pcmcia_socket * s) +int __ref cb_alloc(struct pcmcia_socket * s) { struct pci_bus *bus = s->cb_dev->subordinate; struct pci_dev *dev;