]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit291d3b2a8b7447c50b87c62bdb19aa9baa989ff2
tree2dfa5db7684e2d7b824fbb18bb83cdb1aaa5f08c
parentdf2ff705c791fdf81b5f0ff2401fbca41997b458
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