Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364173
b: refs/heads/master
c: 3e03479
h: refs/heads/master
i:
  364171: d8a7eeb
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Apr 23, 2013
1 parent 3e8e6cd commit 0a92100
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 767308842b4b970ca105b1e80cd92af39355dfc5
refs/heads/master: 3e034797191de9981cddff4d1a8203d020360958
9 changes: 2 additions & 7 deletions trunk/drivers/staging/comedi/drivers/ni_labpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1588,12 +1588,11 @@ static int labpc_eeprom_insn_read(struct comedi_device *dev,
}

int labpc_common_attach(struct comedi_device *dev,
unsigned int irq)
unsigned int irq, unsigned long isr_flags)
{
const struct labpc_boardinfo *board = comedi_board(dev);
struct labpc_private *devpriv = dev->private;
struct comedi_subdevice *s;
unsigned long isr_flags;
int ret;
int i;

Expand All @@ -1616,10 +1615,6 @@ int labpc_common_attach(struct comedi_device *dev,
}

if (irq) {
isr_flags = 0;
if (board->bustype == pci_bustype ||
board->bustype == pcmcia_bustype)
isr_flags |= IRQF_SHARED;
ret = request_irq(irq, labpc_interrupt, isr_flags,
dev->board_name, dev);
if (ret == 0)
Expand Down Expand Up @@ -1738,7 +1733,7 @@ static int labpc_attach(struct comedi_device *dev, struct comedi_devconfig *it)
if (ret)
return ret;

ret = labpc_common_attach(dev, irq);
ret = labpc_common_attach(dev, irq, 0);
if (ret)
return ret;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/comedi/drivers/ni_labpc.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ struct labpc_private {
};

int labpc_common_attach(struct comedi_device *dev,
unsigned int irq);
unsigned int irq, unsigned long isr_flags);
void labpc_common_detach(struct comedi_device *dev);

extern const int labpc_1200_ai_gain_bits[];
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/comedi/drivers/ni_labpc_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static int labpc_auto_attach(struct comedi_device *dev,
return -ENOMEM;
dev->private = devpriv;

return labpc_common_attach(dev, link->irq);
return labpc_common_attach(dev, link->irq, IRQF_SHARED);
}

static void labpc_detach(struct comedi_device *dev)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/comedi/drivers/ni_labpc_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ static int labpc_pci_auto_attach(struct comedi_device *dev,
return ret;
dev->iobase = (unsigned long)devpriv->mite->daq_io_addr;

return labpc_common_attach(dev, mite_irq(devpriv->mite));
return labpc_common_attach(dev, mite_irq(devpriv->mite), IRQF_SHARED);
}

static void labpc_pci_detach(struct comedi_device *dev)
Expand Down

0 comments on commit 0a92100

Please sign in to comment.