OSDN Git Service

serial: milbeaut_usio: Fix error handling in probe and remove
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 25 Apr 2019 15:10:44 +0000 (15:10 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Apr 2019 14:20:24 +0000 (16:20 +0200)
commit74cdf8cec7dd4c9c06533555a49b4afb429cb5be
treef37fedd203f93102e6ca4b33dc6707f75b7b07ae
parent8ef795653d753e3d6ae67e6f4a0168ff3c059deb
serial: milbeaut_usio: Fix error handling in probe and remove

devm_clk_get() is used so there is no reason to explicitly call
clk_put() in probe or remove functions. Also remove duplicate assign
for port->membase.

Fixes: ba44dc043004 ("serial: Add Milbeaut serial control")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Tested-by: Sugaya Taichi <sugaya.taichi@socionext.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/milbeaut_usio.c