]> git.baikalelectronics.ru Git - kernel.git/commit
serial: etraxfs-uart: Fix release etraxfs_uart_ports
authorAxel Lin <axel.lin@ingics.com>
Sun, 28 Jun 2015 01:45:08 +0000 (09:45 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jul 2015 22:25:38 +0000 (15:25 -0700)
commita6e2f3e0f5f4292e55432e9d957e6cdd9fcaf8ad
tree59216a7a1c8e1bf0eaa3cd62b98c65b5fa384b35
parent37f4e839742e3f16ab2e4b08f723f4f5e3042c1f
serial: etraxfs-uart: Fix release etraxfs_uart_ports

In probe, we use dev_id as array index of etraxfs_uart_ports and store the
index in port->line. So etraxfs_uart_ports[port->line] should be released
when unload the module.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Niklas Cassel <nks@flawful.org>
Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/etraxfs-uart.c