Rename reset_board() to me4000_reset() so it has namespace associated
with this driver. Change it's return type to void, it always succeeds.
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>
return 0;
}
-static int reset_board(struct comedi_device *dev)
+static void me4000_reset(struct comedi_device *dev)
{
struct me4000_info *info = dev->private;
unsigned long val;
*/
if (!(inl(dev->iobase + ME4000_DIO_DIR_REG) & 0x1))
outl(0x1, dev->iobase + ME4000_DIO_CTRL_REG);
-
- return 0;
}
/*=============================================================================
if (result)
return result;
- result = reset_board(dev);
- if (result)
- return result;
+ me4000_reset(dev);
result = comedi_alloc_subdevices(dev, 4);
if (result)
free_irq(dev->irq, dev);
if (pcidev) {
if (dev->iobase) {
- reset_board(dev);
+ me4000_reset(dev);
comedi_pci_disable(pcidev);
}
}