[PATCH 05/10] staging: comedi: acl7225b: dev->irq is already '0'

H Hartley Sweeten hsweeten at visionengravers.com
Mon Apr 8 21:30:23 UTC 2013


This driver does not use interrupts and the dev->irq variable is
already set to '0' when then (*attach) function is called. Setting
it in the driver is unnecessary.

Signed-off-by: H Hartley Sweeten <hsweeten at visionengravers.com>
Cc: Ian Abbott <abbotti at mev.co.uk>
Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
---
 drivers/staging/comedi/drivers/acl7225b.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/staging/comedi/drivers/acl7225b.c b/drivers/staging/comedi/drivers/acl7225b.c
index adbe580..132e268 100644
--- a/drivers/staging/comedi/drivers/acl7225b.c
+++ b/drivers/staging/comedi/drivers/acl7225b.c
@@ -76,7 +76,6 @@ static int acl7225b_attach(struct comedi_device *dev,
 	if (!request_region(iobase, board->io_range, dev->board_name))
 		return -EIO;
 	dev->iobase = iobase;
-	dev->irq = 0;
 
 	ret = comedi_alloc_subdevices(dev, 3);
 	if (ret)
-- 
1.8.1.4




More information about the devel mailing list