i2c: axxia: disable clks in case of failure in probe
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 23 Sep 2016 09:15:26 +0000 (11:15 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 24 Sep 2016 09:26:55 +0000 (11:26 +0200)
commit662786a5429c3a992c6f884a647ee32424822358
tree2dfa5db7684e2d7b824fbb18bb83cdb1aaa5f08c
parent70121f7f3725c82e8927a4e03ca1d50c98bbc6d2
i2c: axxia: disable clks in case of failure in probe

axxia_i2c_probe() does not disable clock in case of failure
in i2c_add_adapter(). Also it ignores returned value from
clk_prepare_enable().

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

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-axxia.c