提交 2f8c521a 编写于 作者: J Jiri Slaby 提交者: Greg Kroah-Hartman

TTY: simserial, remove IRQ_T

We do not set ASYNC_SHARE_IRQ anywhere. And since IRQF_DISABLED is a
noop, pass zero to request_irq directly instead of this ugly macro.
Signed-off-by: NJiri Slaby <jslaby@suse.cz>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 964105b5
......@@ -46,8 +46,6 @@
#define NR_PORTS 1 /* only one port for now */
#define IRQ_T(state) ((state->flags & ASYNC_SHARE_IRQ) ? IRQF_SHARED : IRQF_DISABLED)
static char *serial_name = "SimSerial driver";
static char *serial_version = "0.6";
......@@ -644,8 +642,8 @@ startup(struct async_struct *info)
* Allocate the IRQ if necessary
*/
if (state->irq) {
retval = request_irq(state->irq, rs_interrupt_single,
IRQ_T(state), "simserial", info);
retval = request_irq(state->irq, rs_interrupt_single, 0,
"simserial", info);
if (retval)
goto errout;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册