summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2013-01-25 17:35:02 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-29 23:08:23 -0500
commitabbe0796baa03610f3147c786c7c3f20b0050c1d (patch)
treeb5280d51a6a5b7cad009b42c1fe3f81ff6175390
parentaaefe848e056474a583b43c13c4891fbda50caa4 (diff)
downloadlinux-abbe0796baa03610f3147c786c7c3f20b0050c1d.tar.bz2
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>
-rw-r--r--drivers/staging/comedi/drivers/ni_mio_cs.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/staging/comedi/drivers/ni_mio_cs.c b/drivers/staging/comedi/drivers/ni_mio_cs.c
index 253f735b3b4e..2d28a71511aa 100644
--- a/drivers/staging/comedi/drivers/ni_mio_cs.c
+++ b/drivers/staging/comedi/drivers/ni_mio_cs.c
@@ -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,
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 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;
}
+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 = {
.driver_name = "ni_mio_cs",
.module = THIS_MODULE,