OSDN Git Service

serial: stm32: fix error handling in probe
authorFabrice Gasnier <fabrice.gasnier@st.com>
Thu, 13 Jul 2017 15:08:29 +0000 (15:08 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 30 Jul 2017 14:32:31 +0000 (07:32 -0700)
commitada8004374afc35cc3b450dec35fb53531570e7b
tree3e8821c22687bac9ad09e2f7a996e24bb745a382
parent35abe98f15ed60d252f79da6e41b477527af8b2f
serial: stm32: fix error handling in probe

Disable clock properly in case of error.

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Bich Hemon <bich.hemon@st.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.c