i2c: ocores: add missed clk_disable_unprepare() on failure paths
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Wed, 3 Aug 2016 23:38:44 +0000 (02:38 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Sun, 14 Aug 2016 22:55:29 +0000 (00:55 +0200)
commit97ccd4af120c6ee183f424f17672870809bd6efd
treedc59e50283b89e48466f536c608e962dfbe62bbd
parent4d01d88019261d05ec3bff5f1a6013393faa3b9e
i2c: ocores: add missed clk_disable_unprepare() on failure paths

clk_disable_unprepare() is missed on failure paths in ocores_i2c_probe().

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

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-ocores.c