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>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
3afbd89c96
commit
d4e33fac24
@@ -1397,7 +1397,7 @@ static void __devinit sunzilog_init_hw(struct uart_sunzilog_port *up)
|
||||
#endif
|
||||
}
|
||||
|
||||
static int zilog_irq = -1;
|
||||
static int zilog_irq;
|
||||
|
||||
static int __devinit zs_probe(struct platform_device *op)
|
||||
{
|
||||
@@ -1425,7 +1425,7 @@ static int __devinit zs_probe(struct platform_device *op)
|
||||
|
||||
rp = sunzilog_chip_regs[inst];
|
||||
|
||||
if (zilog_irq == -1)
|
||||
if (!zilog_irq)
|
||||
zilog_irq = op->archdata.irqs[0];
|
||||
|
||||
up = &sunzilog_port_table[inst * 2];
|
||||
@@ -1580,7 +1580,7 @@ static int __init sunzilog_init(void)
|
||||
if (err)
|
||||
goto out_unregister_uart;
|
||||
|
||||
if (zilog_irq != -1) {
|
||||
if (!zilog_irq) {
|
||||
struct uart_sunzilog_port *up = sunzilog_irq_chain;
|
||||
err = request_irq(zilog_irq, sunzilog_interrupt, IRQF_SHARED,
|
||||
"zs", sunzilog_irq_chain);
|
||||
@@ -1621,7 +1621,7 @@ static void __exit sunzilog_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&zs_driver);
|
||||
|
||||
if (zilog_irq != -1) {
|
||||
if (!zilog_irq) {
|
||||
struct uart_sunzilog_port *up = sunzilog_irq_chain;
|
||||
|
||||
/* Disable Interrupts */
|
||||
@@ -1637,7 +1637,7 @@ static void __exit sunzilog_exit(void)
|
||||
}
|
||||
|
||||
free_irq(zilog_irq, sunzilog_irq_chain);
|
||||
zilog_irq = -1;
|
||||
zilog_irq = 0;
|
||||
}
|
||||
|
||||
if (sunzilog_reg.nr) {
|
||||
|
Reference in New Issue
Block a user