return 0;
}
-static void acl7225b_detach(struct comedi_device *dev)
-{
- const struct acl7225b_boardinfo *board = comedi_board(dev);
-
- if (dev->iobase)
- release_region(dev->iobase, board->io_range);
-}
-
static struct comedi_driver acl7225b_driver = {
.driver_name = "acl7225b",
.module = THIS_MODULE,
.attach = acl7225b_attach,
- .detach = acl7225b_detach,
+ .detach = comedi_legacy_detach,
.board_name = &acl7225b_boards[0].name,
.num_names = ARRAY_SIZE(acl7225b_boards),
.offset = sizeof(struct acl7225b_boardinfo),
return 0;
}
-static void adq12b_detach(struct comedi_device *dev)
-{
- if (dev->iobase)
- release_region(dev->iobase, ADQ12B_SIZE);
-}
-
static struct comedi_driver adq12b_driver = {
.driver_name = "adq12b",
.module = THIS_MODULE,
.attach = adq12b_attach,
- .detach = adq12b_detach,
+ .detach = comedi_legacy_detach,
};
module_comedi_driver(adq12b_driver);
return 1;
}
-static void aio_iiro_16_detach(struct comedi_device *dev)
-{
- if (dev->iobase)
- release_region(dev->iobase, AIO_IIRO_16_SIZE);
-}
-
static struct comedi_driver aio_iiro_16_driver = {
.driver_name = "aio_iiro_16",
.module = THIS_MODULE,
.attach = aio_iiro_16_attach,
- .detach = aio_iiro_16_detach,
+ .detach = comedi_legacy_detach,
};
module_comedi_driver(aio_iiro_16_driver);
return 0;
}
-static void pc263_detach(struct comedi_device *dev)
-{
- if (dev->iobase)
- release_region(dev->iobase, PC263_IO_SIZE);
-}
-
static struct comedi_driver amplc_pc263_driver = {
.driver_name = PC263_DRIVER_NAME,
.module = THIS_MODULE,
.attach = pc263_attach,
- .detach = pc263_detach,
+ .detach = comedi_legacy_detach,
.board_name = &pc263_boards[0].name,
.offset = sizeof(struct pc263_board),
.num_names = ARRAY_SIZE(pc263_boards),
return ret;
}
-static void dt2801_detach(struct comedi_device *dev)
-{
- if (dev->iobase)
- release_region(dev->iobase, DT2801_IOSIZE);
-}
-
static struct comedi_driver dt2801_driver = {
.driver_name = "dt2801",
.module = THIS_MODULE,
.attach = dt2801_attach,
- .detach = dt2801_detach,
+ .detach = comedi_legacy_detach,
};
module_comedi_driver(dt2801_driver);
return 0;
}
-static void dt2815_detach(struct comedi_device *dev)
-{
- if (dev->iobase)
- release_region(dev->iobase, DT2815_SIZE);
-}
-
static struct comedi_driver dt2815_driver = {
.driver_name = "dt2815",
.module = THIS_MODULE,
.attach = dt2815_attach,
- .detach = dt2815_detach,
+ .detach = comedi_legacy_detach,
};
module_comedi_driver(dt2815_driver);
return 0;
}
-static void dt2817_detach(struct comedi_device *dev)
-{
- if (dev->iobase)
- release_region(dev->iobase, DT2817_SIZE);
-}
-
static struct comedi_driver dt2817_driver = {
.driver_name = "dt2817",
.module = THIS_MODULE,
.attach = dt2817_attach,
- .detach = dt2817_detach,
+ .detach = comedi_legacy_detach,
};
module_comedi_driver(dt2817_driver);
return 1;
}
-static void fl512_detach(struct comedi_device *dev)
-{
- if (dev->iobase)
- release_region(dev->iobase, FL512_SIZE);
-}
-
static struct comedi_driver fl512_driver = {
.driver_name = "fl512",
.module = THIS_MODULE,
.attach = fl512_attach,
- .detach = fl512_detach,
+ .detach = comedi_legacy_detach,
};
module_comedi_driver(fl512_driver);
return 1;
}
-static void mpc624_detach(struct comedi_device *dev)
-{
- if (dev->iobase)
- release_region(dev->iobase, MPC624_SIZE);
-}
-
static struct comedi_driver mpc624_driver = {
.driver_name = "mpc624",
.module = THIS_MODULE,
.attach = mpc624_attach,
- .detach = mpc624_detach
+ .detach = comedi_legacy_detach,
};
module_comedi_driver(mpc624_driver);
return 0;
}
-static void multiq3_detach(struct comedi_device *dev)
-{
- if (dev->iobase)
- release_region(dev->iobase, MULTIQ3_SIZE);
-}
-
static struct comedi_driver multiq3_driver = {
.driver_name = "multiq3",
.module = THIS_MODULE,
.attach = multiq3_attach,
- .detach = multiq3_detach,
+ .detach = comedi_legacy_detach,
};
module_comedi_driver(multiq3_driver);
return 0;
}
-static void atao_detach(struct comedi_device *dev)
-{
- if (dev->iobase)
- release_region(dev->iobase, ATAO_SIZE);
-}
-
static const struct atao_board atao_boards[] = {
{
.name = "ai-ao-6",
.driver_name = "ni_at_ao",
.module = THIS_MODULE,
.attach = atao_attach,
- .detach = atao_detach,
+ .detach = comedi_legacy_detach,
.board_name = &atao_boards[0].name,
.offset = sizeof(struct atao_board),
.num_names = ARRAY_SIZE(atao_boards),
return 0;
}
-static void pcl725_detach(struct comedi_device *dev)
-{
- if (dev->iobase)
- release_region(dev->iobase, PCL725_SIZE);
-}
-
static struct comedi_driver pcl725_driver = {
.driver_name = "pcl725",
.module = THIS_MODULE,
.attach = pcl725_attach,
- .detach = pcl725_detach,
+ .detach = comedi_legacy_detach,
};
module_comedi_driver(pcl725_driver);
return 0;
}
-static void pcl730_detach(struct comedi_device *dev)
-{
- const struct pcl730_board *board = comedi_board(dev);
-
- if (dev->iobase)
- release_region(dev->iobase, board->io_range);
-}
-
static const struct pcl730_board boardtypes[] = {
{ "pcl730", PCL730_SIZE, },
{ "iso730", PCL730_SIZE, },
.driver_name = "pcl730",
.module = THIS_MODULE,
.attach = pcl730_attach,
- .detach = pcl730_detach,
+ .detach = comedi_legacy_detach,
.board_name = &boardtypes[0].name,
.num_names = ARRAY_SIZE(boardtypes),
.offset = sizeof(struct pcl730_board),
return 0;
}
-static void pcm3730_detach(struct comedi_device *dev)
-{
- if (dev->iobase)
- release_region(dev->iobase, PCM3730_SIZE);
-}
-
static struct comedi_driver pcm3730_driver = {
.driver_name = "pcm3730",
.module = THIS_MODULE,
.attach = pcm3730_attach,
- .detach = pcm3730_detach,
+ .detach = comedi_legacy_detach,
};
module_comedi_driver(pcm3730_driver);
return 1;
}
-static void pcmda12_detach(struct comedi_device *dev)
-{
- if (dev->iobase)
- release_region(dev->iobase, IOSIZE);
-}
-
static struct comedi_driver pcmda12_driver = {
.driver_name = "pcmda12",
.module = THIS_MODULE,
.attach = pcmda12_attach,
- .detach = pcmda12_detach,
+ .detach = comedi_legacy_detach,
};
module_comedi_driver(pcmda12_driver);
return 0;
}
-static void poc_detach(struct comedi_device *dev)
-{
- const struct boarddef_struct *board = comedi_board(dev);
-
- if (dev->iobase)
- release_region(dev->iobase, board->iosize);
-}
-
static const struct boarddef_struct boards[] = {
{
.name = "dac02",
.driver_name = "poc",
.module = THIS_MODULE,
.attach = poc_attach,
- .detach = poc_detach,
+ .detach = comedi_legacy_detach,
.board_name = &boards[0].name,
.num_names = ARRAY_SIZE(boards),
.offset = sizeof(boards[0]),
return 0;
}
-static void rti800_detach(struct comedi_device *dev)
-{
- if (dev->iobase)
- release_region(dev->iobase, RTI800_IOSIZE);
-}
-
static struct comedi_driver rti800_driver = {
.driver_name = "rti800",
.module = THIS_MODULE,
.attach = rti800_attach,
- .detach = rti800_detach,
+ .detach = comedi_legacy_detach,
.num_names = ARRAY_SIZE(rti800_boardtypes),
.board_name = &rti800_boardtypes[0].name,
.offset = sizeof(struct rti800_board),
return 0;
}
-static void rti802_detach(struct comedi_device *dev)
-{
- if (dev->iobase)
- release_region(dev->iobase, RTI802_SIZE);
-}
-
static struct comedi_driver rti802_driver = {
.driver_name = "rti802",
.module = THIS_MODULE,
.attach = rti802_attach,
- .detach = rti802_detach,
+ .detach = comedi_legacy_detach,
};
module_comedi_driver(rti802_driver);
return 1;
}
-static void s526_detach(struct comedi_device *dev)
-{
- if (dev->iobase > 0)
- release_region(dev->iobase, S526_IOSIZE);
-}
-
static struct comedi_driver s526_driver = {
.driver_name = "s526",
.module = THIS_MODULE,
.attach = s526_attach,
- .detach = s526_detach,
+ .detach = comedi_legacy_detach,
};
module_comedi_driver(s526_driver);