aboutsummaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorLaxman Dewangan <[email protected]>2013-03-15 05:34:08 +0000
committerWolfram Sang <[email protected]>2013-03-22 10:28:55 +0100
commit132c803f7b70b17322579f6f4f3f65cf68e55135 (patch)
treebb819b313733035c821a9984ded83e3dc2a1f6d8 /lib/test-string_helpers.c
parenta937536b868b8369b98967929045f1df54234323 (diff)
i2c: tegra: check the clk_prepare_enable() return value
NVIDIA's Tegra SoC allows read/write of controller register only if controller clock is enabled. System hangs if read/write happens to registers without enabling clock. clk_prepare_enable() can be fail due to unknown reason and hence adding check for return value of this function. If this function success then only access register otherwise return to caller with error. Signed-off-by: Laxman Dewangan <[email protected]> Reviewed-by: Stephen Warren <[email protected]> Signed-off-by: Wolfram Sang <[email protected]> Cc: [email protected]
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions