]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: jz4780: Fix return value if probe fails
authorAxel Lin <axel.lin@ingics.com>
Tue, 30 Jun 2015 03:41:58 +0000 (11:41 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 9 Jul 2015 20:17:31 +0000 (22:17 +0200)
commit45ac6864dcff713848781d7b0c7b85a28a289142
tree728bb767487a23b0a3fe059656f377930b3d84b4
parent121a1d620f61851c42aa1ca97eecd2ee0a1c41cd
i2c: jz4780: Fix return value if probe fails

Current code returns 0 if fails to read clock-frequency DT property,
fix it. Also add checking return value of clk_prepare_enable and
propagate return value of devm_request_irq.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-jz4780.c