]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: das800: fix request_irq() warn
authorTong Zhang <ztong0001@gmail.com>
Fri, 19 Mar 2021 03:47:52 +0000 (23:47 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Mar 2021 16:04:11 +0000 (17:04 +0100)
commit96d2c9d068922f3ad050d04baf0acb0436275789
tree50f14617a3cb0c0aeb05faadf7a411ac32f3c60f
parent421d4f96864b52ebde0a278dfcab1dae71257d5f
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>
drivers/staging/comedi/drivers/das800.c