diff options
author | Alan Cox <alan@linux.intel.com> | 2012-01-26 12:44:09 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-26 20:14:50 -0500 |
commit | d4e33fac2408d37f7b52e80ca2a89f9fb482914f (patch) | |
tree | dd25baa1bc251ad2aa61a07eda7f95a4d7094126 /drivers/tty/serial/vr41xx_siu.c | |
parent | 3afbd89c9639c344300dcdd7d4e5e18dda559fd4 (diff) |
serial: Kill off NO_IRQ
We transform the offenders into a test of irq <= 0 which will be ok while
the ARM people get their platform sorted. Once that is done (or in a while
if they don't do it anyway) then we will change them all to !irq checks.
For arch specific drivers that are already using NO_IRQ = 0 we just test
against zero so we don't need to re-review them later.
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/tty/serial/vr41xx_siu.c')
-rw-r--r-- | drivers/tty/serial/vr41xx_siu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/vr41xx_siu.c b/drivers/tty/serial/vr41xx_siu.c index 83148e79ca13..cf0d9485ec08 100644 --- a/drivers/tty/serial/vr41xx_siu.c +++ b/drivers/tty/serial/vr41xx_siu.c | |||
@@ -61,7 +61,7 @@ | |||
61 | static struct uart_port siu_uart_ports[SIU_PORTS_MAX] = { | 61 | static struct uart_port siu_uart_ports[SIU_PORTS_MAX] = { |
62 | [0 ... SIU_PORTS_MAX-1] = { | 62 | [0 ... SIU_PORTS_MAX-1] = { |
63 | .lock = __SPIN_LOCK_UNLOCKED(siu_uart_ports->lock), | 63 | .lock = __SPIN_LOCK_UNLOCKED(siu_uart_ports->lock), |
64 | .irq = -1, | 64 | .irq = 0, |
65 | }, | 65 | }, |
66 | }; | 66 | }; |
67 | 67 | ||
@@ -171,7 +171,7 @@ static inline unsigned int siu_check_type(struct uart_port *port) | |||
171 | { | 171 | { |
172 | if (port->line == 0) | 172 | if (port->line == 0) |
173 | return PORT_VR41XX_SIU; | 173 | return PORT_VR41XX_SIU; |
174 | if (port->line == 1 && port->irq != -1) | 174 | if (port->line == 1 && port->irq) |
175 | return PORT_VR41XX_DSIU; | 175 | return PORT_VR41XX_DSIU; |
176 | 176 | ||
177 | return PORT_UNKNOWN; | 177 | return PORT_UNKNOWN; |