Skip to content

Commit

Permalink
serial: sh-sci: Don't check IRQ in verify port operation
Browse files Browse the repository at this point in the history
The IRQ number can't be modified by the user as the port is fixed.
There's no need to check the new IRQ number as it will be ignored by the
core.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
  • Loading branch information
Laurent Pinchart authored and Simon Horman committed Dec 24, 2013
1 parent b6e4a3f commit bc14e00
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/tty/serial/sh-sci.c
Original file line number Diff line number Diff line change
Expand Up @@ -2118,10 +2118,6 @@ static void sci_config_port(struct uart_port *port, int flags)

static int sci_verify_port(struct uart_port *port, struct serial_struct *ser)
{
struct sci_port *s = to_sci_port(port);

if (ser->irq != s->cfg->irqs[SCIx_TXI_IRQ])
return -EINVAL;
if (ser->baud_base < 2400)
/* No paper tape reader for Mitch.. */
return -EINVAL;
Expand Down

0 comments on commit bc14e00

Please sign in to comment.