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>
static void ni_release_gpct_mite_channel(comedi_device * dev,
unsigned gpct_index)
{
static void ni_release_gpct_mite_channel(comedi_device * dev,
unsigned gpct_index)
{
unsigned long flags;
BUG_ON(gpct_index >= NUM_GPCT);
unsigned long flags;
BUG_ON(gpct_index >= NUM_GPCT);
mite_release_channel(mite_chan);
}
comedi_spin_unlock_irqrestore(&devpriv->mite_channel_lock, flags);
mite_release_channel(mite_chan);
}
comedi_spin_unlock_irqrestore(&devpriv->mite_channel_lock, flags);
static void ni_release_cdo_mite_channel(comedi_device * dev)
{
static void ni_release_cdo_mite_channel(comedi_device * dev)
{