staging: comedi: amplc_pci224: __devinit pci224_attach_pci()
authorIan Abbott <abbotti@mev.co.uk>
Thu, 31 May 2012 15:02:02 +0000 (16:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Jun 2012 03:50:06 +0000 (20:50 -0700)
pci224_attach_pci() is only called during PCI probe, indirectly via
comedi_pci_auto_config(), so it can be marked __devinit.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/amplc_pci224.c

index 0d1f9cc50ef3cefca4346af04567e3988722c1aa..96a9d341fa15ed3679c9e41b2ec403f3fca45bdc 100644 (file)
@@ -1495,7 +1495,7 @@ static int pci224_attach(struct comedi_device *dev, struct comedi_devconfig *it)
        return pci224_attach_common(dev, pci_dev, it->options);
 }
 
-static int
+static int __devinit
 pci224_attach_pci(struct comedi_device *dev, struct pci_dev *pci_dev)
 {
        int ret;