]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
staging: comedi: acl7225b: dev->irq is already '0'
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 8 Apr 2013 21:30:23 +0000 (14:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Apr 2013 23:19:43 +0000 (16:19 -0700)
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@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/acl7225b.c

index adbe580fa1f6a36809d2437c6abcc37daf4cdc1c..132e26861f157655ebb6925074cf1cd79aab300f 100644 (file)
@@ -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)