ni_mio_common: ni_release_gpct_mite_channel only used for PCI.
authorIan Abbott <abbotti@mev.co.uk>
Wed, 6 Jun 2012 10:02:27 +0000 (11:02 +0100)
committerIan Abbott <abbotti@mev.co.uk>
Wed, 6 Jun 2012 10:02:27 +0000 (11:02 +0100)
The ni_release_gpct_mite_channel() function is static, but only called
from code within '#ifdef PCIDMA'.  Wrap the whole function within a
'#ifdef PCIDMA'/'#endif' pair to avoid compiler warning about unused
function for the ni_atmio driver.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
comedi/drivers/ni_mio_common.c

index 537990b04f0aca36e524ede4f6a82d66b360e4d2..b8c70d1b15c1146b8283697ba234c9a811d379b4 100644 (file)
@@ -600,10 +600,10 @@ static void ni_release_ao_mite_channel(comedi_device * dev)
 #endif // PCIDMA
 }
 
+#ifdef PCIDMA
 static void ni_release_gpct_mite_channel(comedi_device * dev,
                unsigned gpct_index)
 {
-#ifdef PCIDMA
        unsigned long flags;
 
        BUG_ON(gpct_index >= NUM_GPCT);
@@ -618,8 +618,8 @@ static void ni_release_gpct_mite_channel(comedi_device * dev,
                mite_release_channel(mite_chan);
        }
        comedi_spin_unlock_irqrestore(&devpriv->mite_channel_lock, flags);
-#endif // PCIDMA
 }
+#endif // PCIDMA
 
 static void ni_release_cdo_mite_channel(comedi_device * dev)
 {