Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f59f231e authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman
Browse files

staging: comedi: amplc_pci230: add a missing unlock



This side of the if else statement returned with the lock held and IRQs
disabled.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 27494c09
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -1387,6 +1387,8 @@ static int pci230_ao_inttrig_scan_begin(struct comedi_device *dev,
		/* Delay.  Should driver be responsible for this? */
		/* Delay.  Should driver be responsible for this? */
		/* XXX TODO: See if DAC busy bit can be used. */
		/* XXX TODO: See if DAC busy bit can be used. */
		udelay(8);
		udelay(8);
	} else {
		spin_unlock_irqrestore(&devpriv->ao_stop_spinlock, irqflags);
	}
	}


	return 1;
	return 1;