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>
#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);
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)
{