staging: comedi: ni_mio_cs: move mio_cs_detach()
For aesthetic reasons, move this function down so it's by the comedi_driver declaration. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
aaefe848e0
commit
abbe0796ba
1 changed files with 7 additions and 7 deletions
|
@ -230,13 +230,6 @@ static uint16_t mio_cs_win_in(struct comedi_device *dev, int addr)
|
||||||
static int ni_getboardtype(struct comedi_device *dev,
|
static int ni_getboardtype(struct comedi_device *dev,
|
||||||
struct pcmcia_device *link);
|
struct pcmcia_device *link);
|
||||||
|
|
||||||
static void mio_cs_detach(struct comedi_device *dev)
|
|
||||||
{
|
|
||||||
mio_common_detach(dev);
|
|
||||||
if (dev->irq)
|
|
||||||
free_irq(dev->irq, dev);
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct pcmcia_device *cur_dev;
|
static struct pcmcia_device *cur_dev;
|
||||||
|
|
||||||
static int mio_cs_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
static int mio_cs_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
||||||
|
@ -324,6 +317,13 @@ static int ni_getboardtype(struct comedi_device *dev,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void mio_cs_detach(struct comedi_device *dev)
|
||||||
|
{
|
||||||
|
mio_common_detach(dev);
|
||||||
|
if (dev->irq)
|
||||||
|
free_irq(dev->irq, dev);
|
||||||
|
}
|
||||||
|
|
||||||
static struct comedi_driver driver_ni_mio_cs = {
|
static struct comedi_driver driver_ni_mio_cs = {
|
||||||
.driver_name = "ni_mio_cs",
|
.driver_name = "ni_mio_cs",
|
||||||
.module = THIS_MODULE,
|
.module = THIS_MODULE,
|
||||||
|
|
Loading…
Add table
Reference in a new issue