Fix from Navneet Kataria <nkataria@npcil.co.in> for the following
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 18 Mar 2007 14:46:32 +0000 (14:46 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 18 Mar 2007 14:46:32 +0000 (14:46 +0000)
problem:

... when I initialize
the device using comedi_config command, the device's 1st and 9th relay
automatically goes to energize state.

comedi/drivers/adv_pci_dio.c

index 83aa2c1c65fa9ca5fcecd683056b24b11c213efc..22594b946f11ea7ec55f66d0c82a8e7e5ecec3fe 100644 (file)
@@ -720,7 +720,7 @@ static int pci_dio_reset(comedi_device *dev)
                pci1760_reset(dev);
                break;
        case TYPE_PCI1762:
-               outw(0x0101, dev->iobase+PCI1750_ICR);  // disable & clear interrupts
+               outw(0x0101, dev->iobase+PCI1762_ICR);  // disable & clear interrupts
                break;
        }