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)
commitc547630f6b5cfebf211b313d7c1f54794ac013f0
treeb9771302753190c6ef3b397d7783d87ee3f9aabd
parenteda0cd3546ab2c69796ea0bfdc04723c74372f1d
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
This page took 0.024362 seconds and 5 git commands to generate.