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)
commiteb8173e3d7b94664ecd3acf34942c9c9d6f6cb73
tree728bb767487a23b0a3fe059656f377930b3d84b4
parent724948106ed236fc528c720ae12c79af7e2aea4e
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