]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: meson: serial: convert iounmap to devm_iounmap
authorFiro Yang <firogm@gmail.com>
Sun, 26 Apr 2015 10:46:06 +0000 (18:46 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 May 2015 20:27:02 +0000 (22:27 +0200)
commit6f620ae62c80e4b187f87d32c9eb1c318bc78f72
treeb9771302753190c6ef3b397d7783d87ee3f9aabd
parent1ded12e05790343e4127ed1009b436597d4a6f1e
ARM: meson: serial: convert iounmap to devm_iounmap

The function meson_uart_release_port() inappropriately try to
iounmap() a resource managed by devm_ioremap_nocache().
The function meson_uart_release_port() maybe called by uart_ioctl()
that means meson_uart_release_port() is not called from within a
probe or remove function, for safety, I convert iounmap() to
devm_iounmap().

Signed-off-by: Firo Yang <firogm@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/meson_uart.c