Commit 2aaa9573 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Greg Kroah-Hartman

serial: pic32_uart: Fix 'request_irq' and 'free_irq' inconsistancy

'request_irq' and 'free_irq' should have the same 'dev_id'.
Here one uses 'port', and the other one uses 'sport'.
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ba3d6f8f
......@@ -495,13 +495,13 @@ static int pic32_uart_startup(struct uart_port *port)
out_t:
kfree(sport->irq_tx_name);
free_irq(sport->irq_tx, sport);
free_irq(sport->irq_tx, port);
out_r:
kfree(sport->irq_rx_name);
free_irq(sport->irq_rx, sport);
free_irq(sport->irq_rx, port);
out_f:
kfree(sport->irq_fault_name);
free_irq(sport->irq_fault, sport);
free_irq(sport->irq_fault, port);
out_done:
return ret;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment