Commit a690b7e5 authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

staging: comedi: remove use of __devinit

CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.
Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a471eace
......@@ -213,7 +213,7 @@ static const void *pci_8255_find_boardinfo(struct comedi_device *dev,
return NULL;
}
static int __devinit pci_8255_auto_attach(struct comedi_device *dev,
static int pci_8255_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -308,7 +308,7 @@ static struct comedi_driver pci_8255_driver = {
.detach = pci_8255_detach,
};
static int __devinit pci_8255_pci_probe(struct pci_dev *dev,
static int pci_8255_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &pci_8255_driver);
......
......@@ -93,7 +93,7 @@ static const void *addi_find_boardinfo(struct comedi_device *dev,
return NULL;
}
static int __devinit addi_auto_attach(struct comedi_device *dev,
static int addi_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......
......@@ -47,7 +47,7 @@ static struct comedi_driver apci035_driver = {
.offset = sizeof(struct addi_board),
};
static int __devinit apci035_pci_probe(struct pci_dev *dev,
static int apci035_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &apci035_driver);
......
......@@ -285,7 +285,7 @@ static int apci1032_di_insn_bits(struct comedi_device *dev,
return insn->n;
}
static int __devinit apci1032_auto_attach(struct comedi_device *dev,
static int apci1032_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -369,7 +369,7 @@ static struct comedi_driver apci1032_driver = {
.detach = apci1032_detach,
};
static int __devinit apci1032_pci_probe(struct pci_dev *dev,
static int apci1032_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &apci1032_driver);
......
......@@ -47,7 +47,7 @@ static struct comedi_driver apci1500_driver = {
.offset = sizeof(struct addi_board),
};
static int __devinit apci1500_pci_probe(struct pci_dev *dev,
static int apci1500_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &apci1500_driver);
......
......@@ -225,7 +225,7 @@ static const void *apci1516_find_boardinfo(struct comedi_device *dev,
return NULL;
}
static int __devinit apci1516_auto_attach(struct comedi_device *dev,
static int apci1516_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -317,7 +317,7 @@ static struct comedi_driver apci1516_driver = {
.detach = apci1516_detach,
};
static int __devinit apci1516_pci_probe(struct pci_dev *dev,
static int apci1516_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &apci1516_driver);
......
......@@ -44,7 +44,7 @@ static struct comedi_driver apci1564_driver = {
.offset = sizeof(struct addi_board),
};
static int __devinit apci1564_pci_probe(struct pci_dev *dev,
static int apci1564_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &apci1564_driver);
......
......@@ -46,7 +46,7 @@ static struct comedi_driver apci16xx_driver = {
.offset = sizeof(struct addi_board),
};
static int __devinit apci16xx_pci_probe(struct pci_dev *dev,
static int apci16xx_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &apci16xx_driver);
......
......@@ -52,7 +52,7 @@ static const void *apci1710_find_boardinfo(struct comedi_device *dev,
return NULL;
}
static int __devinit apci1710_auto_attach(struct comedi_device *dev,
static int apci1710_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -122,7 +122,7 @@ static struct comedi_driver apci1710_driver = {
.detach = apci1710_detach,
};
static int __devinit apci1710_pci_probe(struct pci_dev *dev,
static int apci1710_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &apci1710_driver);
......
......@@ -41,7 +41,7 @@ static struct comedi_driver apci2032_driver = {
.offset = sizeof(struct addi_board),
};
static int __devinit apci2032_pci_probe(struct pci_dev *dev,
static int apci2032_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &apci2032_driver);
......
......@@ -39,7 +39,7 @@ static struct comedi_driver apci2200_driver = {
.offset = sizeof(struct addi_board),
};
static int __devinit apci2200_pci_probe(struct pci_dev *dev,
static int apci2200_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &apci2200_driver);
......
......@@ -60,7 +60,7 @@ static const void *apci3120_find_boardinfo(struct comedi_device *dev,
return NULL;
}
static int __devinit apci3120_auto_attach(struct comedi_device *dev,
static int apci3120_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -245,7 +245,7 @@ static struct comedi_driver apci3120_driver = {
.detach = apci3120_detach,
};
static int __devinit apci3120_pci_probe(struct pci_dev *dev,
static int apci3120_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &apci3120_driver);
......
......@@ -100,7 +100,7 @@ static struct comedi_driver apci3200_driver = {
.offset = sizeof(struct addi_board),
};
static int __devinit apci3200_pci_probe(struct pci_dev *dev,
static int apci3200_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &apci3200_driver);
......
......@@ -51,7 +51,7 @@ static struct comedi_driver apci3501_driver = {
.offset = sizeof(struct addi_board),
};
static int __devinit apci3501_pci_probe(struct pci_dev *dev,
static int apci3501_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &apci3501_driver);
......
......@@ -745,7 +745,7 @@ static struct comedi_driver apci3xxx_driver = {
.offset = sizeof(struct addi_board),
};
static int __devinit apci3xxx_pci_probe(struct pci_dev *dev,
static int apci3xxx_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &apci3xxx_driver);
......
......@@ -174,7 +174,7 @@ static const void *pci6208_find_boardinfo(struct comedi_device *dev,
return NULL;
}
static int __devinit pci6208_auto_attach(struct comedi_device *dev,
static int pci6208_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -264,7 +264,7 @@ static struct comedi_driver adl_pci6208_driver = {
.detach = pci6208_detach,
};
static int __devinit adl_pci6208_pci_probe(struct pci_dev *dev,
static int adl_pci6208_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &adl_pci6208_driver);
......
......@@ -168,7 +168,7 @@ static const void *adl_pci7x3x_find_boardinfo(struct comedi_device *dev,
return NULL;
}
static int __devinit adl_pci7x3x_auto_attach(struct comedi_device *dev,
static int adl_pci7x3x_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -296,7 +296,7 @@ static struct comedi_driver adl_pci7x3x_driver = {
.detach = adl_pci7x3x_detach,
};
static int __devinit adl_pci7x3x_pci_probe(struct pci_dev *dev,
static int adl_pci7x3x_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &adl_pci7x3x_driver);
......
......@@ -212,7 +212,7 @@ static int adl_pci8164_insn_write_buf1(struct comedi_device *dev,
return 2;
}
static int __devinit adl_pci8164_auto_attach(struct comedi_device *dev,
static int adl_pci8164_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -292,7 +292,7 @@ static struct comedi_driver adl_pci8164_driver = {
.detach = adl_pci8164_detach,
};
static int __devinit adl_pci8164_pci_probe(struct pci_dev *dev,
static int adl_pci8164_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &adl_pci8164_driver);
......
......@@ -856,7 +856,7 @@ static int pci9111_reset(struct comedi_device *dev)
return 0;
}
static int __devinit pci9111_auto_attach(struct comedi_device *dev,
static int pci9111_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -957,7 +957,7 @@ static struct comedi_driver adl_pci9111_driver = {
.detach = pci9111_detach,
};
static int __devinit pci9111_pci_probe(struct pci_dev *dev,
static int pci9111_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &adl_pci9111_driver);
......
......@@ -2155,7 +2155,7 @@ static int pci9118_attach(struct comedi_device *dev,
softsshdelay, hw_err_mask);
}
static int __devinit pci9118_auto_attach(struct comedi_device *dev,
static int pci9118_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -2219,7 +2219,7 @@ static struct comedi_driver adl_pci9118_driver = {
.offset = sizeof(struct boardtype),
};
static int __devinit adl_pci9118_pci_probe(struct pci_dev *dev,
static int adl_pci9118_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &adl_pci9118_driver);
......
......@@ -1233,7 +1233,7 @@ static const void *pci1710_find_boardinfo(struct comedi_device *dev,
return NULL;
}
static int __devinit pci1710_auto_attach(struct comedi_device *dev,
static int pci1710_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -1396,7 +1396,7 @@ static struct comedi_driver adv_pci1710_driver = {
.detach = pci1710_detach,
};
static int __devinit adv_pci1710_pci_probe(struct pci_dev *dev,
static int adv_pci1710_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &adv_pci1710_driver);
......
......@@ -232,7 +232,7 @@ static int pci1723_dio_insn_bits(struct comedi_device *dev,
return insn->n;
}
static int __devinit pci1723_auto_attach(struct comedi_device *dev,
static int pci1723_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -321,7 +321,7 @@ static struct comedi_driver adv_pci1723_driver = {
.detach = pci1723_detach,
};
static int __devinit adv_pci1723_pci_probe(struct pci_dev *dev,
static int adv_pci1723_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &adv_pci1723_driver);
......
......@@ -1090,7 +1090,7 @@ static const void *pci_dio_find_boardinfo(struct comedi_device *dev,
return NULL;
}
static int __devinit pci_dio_auto_attach(struct comedi_device *dev,
static int pci_dio_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -1200,7 +1200,7 @@ static struct comedi_driver adv_pci_dio_driver = {
.detach = pci_dio_detach,
};
static int __devinit adv_pci_dio_pci_probe(struct pci_dev *dev,
static int adv_pci_dio_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &adv_pci_dio_driver);
......
......@@ -1925,7 +1925,7 @@ static int dio200_attach(struct comedi_device *dev, struct comedi_devconfig *it)
* comedi_pci_auto_config(). dev->board_ptr is NULL on entry.
* There should be a board entry matching the supplied PCI device.
*/
static int __devinit dio200_auto_attach(struct comedi_device *dev,
static int dio200_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pci_dev = comedi_to_pci_dev(dev);
......@@ -2072,7 +2072,7 @@ static DEFINE_PCI_DEVICE_TABLE(dio200_pci_table) = {
MODULE_DEVICE_TABLE(pci, dio200_pci_table);
static int __devinit amplc_dio200_pci_probe(struct pci_dev *dev,
static int amplc_dio200_pci_probe(struct pci_dev *dev,
const struct pci_device_id
*ent)
{
......
......@@ -526,7 +526,7 @@ static int pc236_attach(struct comedi_device *dev, struct comedi_devconfig *it)
* comedi_pci_auto_config(). dev->board_ptr is NULL on entry.
* There should be a board entry matching the supplied PCI device.
*/
static int __devinit pc236_auto_attach(struct comedi_device *dev,
static int pc236_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pci_dev = comedi_to_pci_dev(dev);
......@@ -608,7 +608,7 @@ static DEFINE_PCI_DEVICE_TABLE(pc236_pci_table) = {
MODULE_DEVICE_TABLE(pci, pc236_pci_table);
static int __devinit amplc_pc236_pci_probe(struct pci_dev *dev,
static int amplc_pc236_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &amplc_pc236_driver);
......
......@@ -296,7 +296,7 @@ static int pc263_attach(struct comedi_device *dev, struct comedi_devconfig *it)
* comedi_pci_auto_config(). dev->board_ptr is NULL on entry.
* There should be a board entry matching the supplied PCI device.
*/
static int __devinit pc263_auto_attach(struct comedi_device *dev,
static int pc263_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pci_dev;
......@@ -365,7 +365,7 @@ static DEFINE_PCI_DEVICE_TABLE(pc263_pci_table) = {
};
MODULE_DEVICE_TABLE(pci, pc263_pci_table);
static int __devinit amplc_pc263_pci_probe(struct pci_dev *dev,
static int amplc_pc263_pci_probe(struct pci_dev *dev,
const struct pci_device_id
*ent)
{
......
......@@ -1438,7 +1438,7 @@ static int pci224_attach(struct comedi_device *dev, struct comedi_devconfig *it)
return pci224_attach_common(dev, pci_dev, it->options);
}
static int __devinit
static int
pci224_auto_attach(struct comedi_device *dev, unsigned long context_unused)
{
struct pci_dev *pci_dev = comedi_to_pci_dev(dev);
......@@ -1505,7 +1505,7 @@ static struct comedi_driver amplc_pci224_driver = {
.num_names = ARRAY_SIZE(pci224_boards),
};
static int __devinit amplc_pci224_pci_probe(struct pci_dev *dev,
static int amplc_pci224_pci_probe(struct pci_dev *dev,
const struct pci_device_id
*ent)
{
......
......@@ -2801,7 +2801,7 @@ static int pci230_attach(struct comedi_device *dev, struct comedi_devconfig *it)
return pci230_attach_common(dev, pci_dev);
}
static int __devinit pci230_auto_attach(struct comedi_device *dev,
static int pci230_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pci_dev = comedi_to_pci_dev(dev);
......@@ -2857,7 +2857,7 @@ static struct comedi_driver amplc_pci230_driver = {
.num_names = ARRAY_SIZE(pci230_boards),
};
static int __devinit amplc_pci230_pci_probe(struct pci_dev *dev,
static int amplc_pci230_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &amplc_pci230_driver);
......
......@@ -1436,7 +1436,7 @@ static const void *cb_pcidas_find_boardinfo(struct comedi_device *dev,
return NULL;
}
static int __devinit cb_pcidas_auto_attach(struct comedi_device *dev,
static int cb_pcidas_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -1626,7 +1626,7 @@ static struct comedi_driver cb_pcidas_driver = {
.detach = cb_pcidas_detach,
};
static int __devinit cb_pcidas_pci_probe(struct pci_dev *dev,
static int cb_pcidas_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &cb_pcidas_driver);
......
......@@ -4043,7 +4043,7 @@ static const struct pcidas64_board
return NULL;
}
static int __devinit auto_attach(struct comedi_device *dev,
static int auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
const struct pcidas64_board *thisboard;
......@@ -4214,7 +4214,7 @@ static struct comedi_driver cb_pcidas64_driver = {
.detach = detach,
};
static int __devinit cb_pcidas64_pci_probe(struct pci_dev *dev,
static int cb_pcidas64_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &cb_pcidas64_driver);
......
......@@ -349,7 +349,7 @@ static const void *cb_pcidda_find_boardinfo(struct comedi_device *dev,
return NULL;
}
static int __devinit cb_pcidda_auto_attach(struct comedi_device *dev,
static int cb_pcidda_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -432,7 +432,7 @@ static struct comedi_driver cb_pcidda_driver = {
.detach = cb_pcidda_detach,
};
static int __devinit cb_pcidda_pci_probe(struct pci_dev *dev,
static int cb_pcidda_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &cb_pcidda_driver);
......
......@@ -205,7 +205,7 @@ static int cb_pcimdas_ao_rinsn(struct comedi_device *dev,
return i;
}
static int __devinit cb_pcimdas_auto_attach(struct comedi_device *dev,
static int cb_pcimdas_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -293,7 +293,7 @@ static struct comedi_driver cb_pcimdas_driver = {
.detach = cb_pcimdas_detach,
};
static int __devinit cb_pcimdas_pci_probe(struct pci_dev *dev,
static int cb_pcimdas_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &cb_pcimdas_driver);
......
......@@ -151,7 +151,7 @@ static int cb_pcimdda_ao_rinsn(struct comedi_device *dev,
return insn->n;
}
static int __devinit cb_pcimdda_auto_attach(struct comedi_device *dev,
static int cb_pcimdda_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -216,7 +216,7 @@ static struct comedi_driver cb_pcimdda_driver = {
.detach = cb_pcimdda_detach,
};
static int __devinit cb_pcimdda_pci_probe(struct pci_dev *dev,
static int cb_pcimdda_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &cb_pcimdda_driver);
......
......@@ -68,7 +68,7 @@ static int contec_di_insn_bits(struct comedi_device *dev,
return insn->n;
}
static int __devinit contec_auto_attach(struct comedi_device *dev,
static int contec_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -124,7 +124,7 @@ static struct comedi_driver contec_pci_dio_driver = {
.detach = contec_detach,
};
static int __devinit contec_pci_dio_pci_probe(struct pci_dev *dev,
static int contec_pci_dio_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &contec_pci_dio_driver);
......
......@@ -688,7 +688,7 @@ static const void *daqboard2000_find_boardinfo(struct comedi_device *dev,
return NULL;
}
static int __devinit daqboard2000_auto_attach(struct comedi_device *dev,
static int daqboard2000_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -793,7 +793,7 @@ static struct comedi_driver daqboard2000_driver = {
.detach = daqboard2000_detach,
};
static int __devinit daqboard2000_pci_probe(struct pci_dev *dev,
static int daqboard2000_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &daqboard2000_driver);
......
......@@ -774,7 +774,7 @@ das08_find_pci_board(struct pci_dev *pdev)
}
/* only called in the PCI probe path, via comedi_pci_auto_config() */
static int __devinit __maybe_unused
static int __maybe_unused
das08_auto_attach(struct comedi_device *dev, unsigned long context_unused)
{
struct pci_dev *pdev;
......@@ -885,7 +885,7 @@ static DEFINE_PCI_DEVICE_TABLE(das08_pci_table) = {
MODULE_DEVICE_TABLE(pci, das08_pci_table);
static int __devinit das08_pci_probe(struct pci_dev *dev,
static int das08_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &das08_driver);
......
......@@ -728,7 +728,7 @@ static const void *dt3000_find_boardinfo(struct comedi_device *dev,
return NULL;
}
static int __devinit dt3000_auto_attach(struct comedi_device *dev,
static int dt3000_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -850,7 +850,7 @@ static struct comedi_driver dt3000_driver = {
.detach = dt3000_detach,
};
static int __devinit dt3000_pci_probe(struct pci_dev *dev,
static int dt3000_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &dt3000_driver);
......
......@@ -177,7 +177,7 @@ static int dyna_pci10xx_do_insn_bits(struct comedi_device *dev,
return insn->n;
}
static int __devinit dyna_pci10xx_auto_attach(struct comedi_device *dev,
static int dyna_pci10xx_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -270,7 +270,7 @@ static struct comedi_driver dyna_pci10xx_driver = {
.detach = dyna_pci10xx_detach,
};
static int __devinit dyna_pci10xx_pci_probe(struct pci_dev *dev,
static int dyna_pci10xx_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &dyna_pci10xx_driver);
......
......@@ -474,7 +474,7 @@ static const struct hpdi_board *hpdi_find_board(struct pci_dev *pcidev)
return NULL;
}
static int __devinit hpdi_auto_attach(struct comedi_device *dev,
static int hpdi_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -940,7 +940,7 @@ static struct comedi_driver gsc_hpdi_driver = {
.detach = hpdi_detach,
};
static int __devinit gsc_hpdi_pci_probe(struct pci_dev *dev,
static int gsc_hpdi_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &gsc_hpdi_driver);
......
......@@ -494,7 +494,7 @@ static int icp_multi_reset(struct comedi_device *dev)
return 0;
}
static int __devinit icp_multi_auto_attach(struct comedi_device *dev,
static int icp_multi_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -617,7 +617,7 @@ static struct comedi_driver icp_multi_driver = {
.detach = icp_multi_detach,
};
static int __devinit icp_multi_pci_probe(struct pci_dev *dev,
static int icp_multi_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &icp_multi_driver);
......
......@@ -657,7 +657,7 @@ static void jr3_pci_poll_dev(unsigned long data)
add_timer(&devpriv->timer);
}
static int __devinit jr3_pci_auto_attach(struct comedi_device *dev,
static int jr3_pci_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
int result;
......@@ -838,7 +838,7 @@ static struct comedi_driver jr3_pci_driver = {
.detach = jr3_pci_detach,
};
static int __devinit jr3_pci_pci_probe(struct pci_dev *dev,
static int jr3_pci_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &jr3_pci_driver);
......
......@@ -87,7 +87,7 @@ static int cnt_rinsn(struct comedi_device *dev,
return 1;
}
static int __devinit cnt_auto_attach(struct comedi_device *dev,
static int cnt_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -146,7 +146,7 @@ static struct comedi_driver ke_counter_driver = {
.detach = cnt_detach,
};
static int __devinit ke_counter_pci_probe(struct pci_dev *dev,
static int ke_counter_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &ke_counter_driver);
......
......@@ -1563,7 +1563,7 @@ static const void *me4000_find_boardinfo(struct comedi_device *dev,
return NULL;
}
static int __devinit me4000_auto_attach(struct comedi_device *dev,
static int me4000_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -1728,7 +1728,7 @@ static struct comedi_driver me4000_driver = {
.detach = me4000_detach,
};
static int __devinit me4000_pci_probe(struct pci_dev *dev,
static int me4000_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &me4000_driver);
......
......@@ -500,7 +500,7 @@ static const void *me_find_boardinfo(struct comedi_device *dev,
return NULL;
}
static int __devinit me_auto_attach(struct comedi_device *dev,
static int me_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -613,7 +613,7 @@ static struct comedi_driver me_daq_driver = {
.detach = me_detach,
};
static int __devinit me_daq_pci_probe(struct pci_dev *dev,
static int me_daq_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &me_daq_driver);
......
......@@ -341,7 +341,7 @@ ni6527_find_boardinfo(struct pci_dev *pcidev)
return NULL;
}
static int __devinit ni6527_auto_attach(struct comedi_device *dev,
static int ni6527_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -446,7 +446,7 @@ static struct comedi_driver ni6527_driver = {
.detach = ni6527_detach,
};
static int __devinit ni6527_pci_probe(struct pci_dev *dev,
static int ni6527_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &ni6527_driver);
......
......@@ -611,7 +611,7 @@ ni_65xx_find_boardinfo(struct pci_dev *pcidev)
return NULL;
}
static int __devinit ni_65xx_auto_attach(struct comedi_device *dev,
static int ni_65xx_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -782,7 +782,7 @@ static struct comedi_driver ni_65xx_driver = {
.detach = ni_65xx_detach,
};
static int __devinit ni_65xx_pci_probe(struct pci_dev *dev,
static int ni_65xx_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &ni_65xx_driver);
......
......@@ -1166,7 +1166,7 @@ static int ni_660x_dio_insn_config(struct comedi_device *dev,
return insn->n;
}
static int __devinit ni_660x_auto_attach(struct comedi_device *dev,
static int ni_660x_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -1321,7 +1321,7 @@ static struct comedi_driver ni_660x_driver = {
.detach = ni_660x_detach,
};
static int __devinit ni_660x_pci_probe(struct pci_dev *dev,
static int ni_660x_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &ni_660x_driver);
......
......@@ -201,7 +201,7 @@ ni_670x_find_boardinfo(struct pci_dev *pcidev)
return NULL;
}
static int __devinit ni_670x_auto_attach(struct comedi_device *dev,
static int ni_670x_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -303,7 +303,7 @@ static struct comedi_driver ni_670x_driver = {
.detach = ni_670x_detach,
};
static int __devinit ni_670x_pci_probe(struct pci_dev *dev,
static int ni_670x_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &ni_670x_driver);
......
......@@ -696,7 +696,7 @@ labpc_pci_find_boardinfo(struct pci_dev *pcidev)
return NULL;
}
static int __devinit labpc_auto_attach(struct comedi_device *dev,
static int labpc_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -2110,7 +2110,7 @@ static DEFINE_PCI_DEVICE_TABLE(labpc_pci_table) = {
};
MODULE_DEVICE_TABLE(pci, labpc_pci_table);
static int __devinit labpc_pci_probe(struct pci_dev *dev,
static int labpc_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &labpc_driver);
......
......@@ -1106,7 +1106,7 @@ nidio_find_boardinfo(struct pci_dev *pcidev)
return NULL;
}
static int __devinit nidio_auto_attach(struct comedi_device *dev,
static int nidio_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -1218,7 +1218,7 @@ static struct comedi_driver ni_pcidio_driver = {
.detach = nidio_detach,
};
static int __devinit ni_pcidio_pci_probe(struct pci_dev *dev,
static int ni_pcidio_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &ni_pcidio_driver);
......
......@@ -1620,7 +1620,7 @@ pcimio_find_boardinfo(struct pci_dev *pcidev)
return NULL;
}
static int __devinit pcimio_auto_attach(struct comedi_device *dev,
static int pcimio_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -1785,7 +1785,7 @@ static struct comedi_driver ni_pcimio_driver = {
.detach = pcimio_detach,
};
static int __devinit ni_pcimio_pci_probe(struct pci_dev *dev,
static int ni_pcimio_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &ni_pcimio_driver);
......
......@@ -1272,7 +1272,7 @@ static const void *rtd_find_boardinfo(struct comedi_device *dev,
return NULL;
}
static int __devinit rtd_auto_attach(struct comedi_device *dev,
static int rtd_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -1414,7 +1414,7 @@ static struct comedi_driver rtd520_driver = {
.detach = rtd_detach,
};
static int __devinit rtd520_pci_probe(struct pci_dev *dev,
static int rtd520_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &rtd520_driver);
......
......@@ -2657,7 +2657,7 @@ static void s626_initialize(struct comedi_device *dev)
/* writel(IRQ_GPIO3 | IRQ_RPS1, devpriv->base_addr + P_IER); */
}
static int __devinit s626_auto_attach(struct comedi_device *dev,
static int s626_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -2830,7 +2830,7 @@ static struct comedi_driver s626_driver = {
.detach = s626_detach,
};
static int __devinit s626_pci_probe(struct pci_dev *dev,
static int s626_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &s626_driver);
......
......@@ -541,16 +541,12 @@ static int skel_attach(struct comedi_device *dev, struct comedi_devconfig *it)
* comedi_usb_auto_config(), etc.) to handle devices that can be attached
* to the Comedi core automatically without the COMEDI_DEVCONFIG ioctl.
*
* For PCI devices, comedi_pci_auto_config() is usually called directly from
* the struct pci_driver probe() function, so this _auto_attach() function
* can be tagged __devinit.
*
* The context parameter is usually unused, but if the driver called
* comedi_auto_config() directly instead of the comedi_pci_auto_config()
* wrapper function, this will be a copy of the context passed to
* comedi_auto_config().
*/
static int __devinit skel_auto_attach(struct comedi_device *dev,
static int skel_auto_attach(struct comedi_device *dev,
unsigned long context)
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
......@@ -705,7 +701,7 @@ static DEFINE_PCI_DEVICE_TABLE(skel_pci_table) = {
};
MODULE_DEVICE_TABLE(pci, skel_pci_table);
static int __devinit skel_pci_probe(struct pci_dev *dev,
static int skel_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{
return comedi_pci_auto_config(dev, &skel_driver);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment