i2c: efm32: fix a failure path in efm32_i2c_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 15 Jul 2016 23:36:38 +0000 (02:36 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Aug 2016 16:09:19 +0000 (18:09 +0200)
commit3f32fd3a3a49780994d4f1b32816adfba75777cb
treef9f7e8c1fa6d2127284d683c1b84385d44389102
parent31edf03971c2dd1189024f87b349f66a473aeb4b
i2c: efm32: fix a failure path in efm32_i2c_probe()

commit 7dd91d52a813f99a95d20f539b777e9e6198b931 upstream.

There is the only failure path in efm32_i2c_probe(),
where clk_disable_unprepare() is missed.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Fixes: 1b5b23718b84 ("i2c: efm32: new bus driver")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-efm32.c