summaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2008-05-01 13:34:52 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-05-01 17:04:00 +0200
commite772d782a6b0f14d491a95445f0ec6767d66fb29 (patch)
treec9ccad3dbab71fb4302cda5101f3fbef4c55c9ea /drivers/pcmcia
parentpcmcia: silence section mismatch warnings from pci_driver variables (diff)
downloadlinux-e772d782a6b0f14d491a95445f0ec6767d66fb29.tar.xz
linux-e772d782a6b0f14d491a95445f0ec6767d66fb29.zip
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 <sam@ravnborg.org> Cc: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r--drivers/pcmcia/cardbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pcmcia/cardbus.c b/drivers/pcmcia/cardbus.c
index 714baaeb6da1..fb2f38dc92c5 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;