mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-07 15:18:15 +00:00
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: Jiri Slaby <jslaby@suse.cz> Cc: Tony Luck <tony.luck@intel.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
964105b501
commit
2f8c521a1d
1 changed files with 2 additions and 4 deletions
|
@ -46,8 +46,6 @@
|
||||||
|
|
||||||
#define NR_PORTS 1 /* only one port for now */
|
#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_name = "SimSerial driver";
|
||||||
static char *serial_version = "0.6";
|
static char *serial_version = "0.6";
|
||||||
|
|
||||||
|
@ -644,8 +642,8 @@ startup(struct async_struct *info)
|
||||||
* Allocate the IRQ if necessary
|
* Allocate the IRQ if necessary
|
||||||
*/
|
*/
|
||||||
if (state->irq) {
|
if (state->irq) {
|
||||||
retval = request_irq(state->irq, rs_interrupt_single,
|
retval = request_irq(state->irq, rs_interrupt_single, 0,
|
||||||
IRQ_T(state), "simserial", info);
|
"simserial", info);
|
||||||
if (retval)
|
if (retval)
|
||||||
goto errout;
|
goto errout;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue