Commit eaf1e647 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: adv_pci_dio: use a default case in pci_dio_reset()

For aesthetics, use a default case in the switch (board->cardtype) used
to reset the various boards.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4cabeb10
......@@ -313,11 +313,6 @@ static int pci_dio_reset(struct comedi_device *dev)
/* set rising edge trigger */
outb(0, dev->iobase + PCI1730_3_INT_RF);
break;
case TYPE_PCI1734:
break;
case TYPE_PCI1735:
break;
case TYPE_PCI1736:
/* disable interrupts */
outb(0, dev->iobase + PCI1736_3_INT_EN);
......@@ -326,12 +321,10 @@ static int pci_dio_reset(struct comedi_device *dev)
/* set rising edge trigger */
outb(0, dev->iobase + PCI1736_3_INT_RF);
break;
case TYPE_PCI1739:
/* disable & clear interrupts */
outb(0x88, dev->iobase + PCI1739_ICR);
break;
case TYPE_PCI1750:
case TYPE_PCI1751:
/* disable & clear interrupts */
......@@ -373,6 +366,8 @@ static int pci_dio_reset(struct comedi_device *dev)
outw(0x0101, dev->iobase + PCI1762_ICR); /* disable & clear
* interrupts */
break;
default:
break;
}
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment