staging: comedi: das800: fix request_irq() warn
request_irq() won't accept a name which contains slash so we need to replace it with something else -- otherwise it will throw a warning and the entry in /proc/irq/ will not be created. Since the .name might be used by userspace and we don't want to break userspace, so we are changing the parameters passed to request_irq() Suggested-by: Ian Abbott <abbotti@mev.co.uk> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Tong Zhang <ztong0001@gmail.com> Link: https://lore.kernel.org/r/20210319034753.435811-1-ztong0001@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c7f57fd6b7
commit
9e1c785f13
@ -668,7 +668,7 @@ static int das800_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
||||
dev->board_name = board->name;
|
||||
|
||||
if (irq > 1 && irq <= 7) {
|
||||
ret = request_irq(irq, das800_interrupt, 0, dev->board_name,
|
||||
ret = request_irq(irq, das800_interrupt, 0, "das800",
|
||||
dev);
|
||||
if (ret == 0)
|
||||
dev->irq = irq;
|
||||
|
Loading…
Reference in New Issue
Block a user