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)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 19 Jul 2016 04:23:48 +0000 (06:23 +0200)
commit7dd91d52a813f99a95d20f539b777e9e6198b931
tree12b1197b2238a1f248bf9a5d53e1d4809beada21
parent5b40f121ced215544531dc00201ea4e8f68671c1
i2c: efm32: fix a failure path in efm32_i2c_probe()

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")
Cc: stable@kernel.org
drivers/i2c/busses/i2c-efm32.c