iio: Aspeed ADC - Handle return value of clk_prepare_enable
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Mon, 29 May 2017 07:42:12 +0000 (13:12 +0530)
committerJonathan Cameron <jic23@kernel.org>
Sun, 11 Jun 2017 14:08:20 +0000 (15:08 +0100)
commit4e36a8ad4d69fbb52f0f07d9ff340cd6a7a2a503
tree804ef7e80b603c6a37ed7fa3a31ad81f1d089c4c
parent440d303c7775a5dff546dbbc9a39e8c6cbdd6d18
iio: Aspeed ADC - Handle return value of clk_prepare_enable

clk_prepare_enable() can fail here and we must check its return value.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Reviewed-by: Rick Altherr <raltherr@google.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/aspeed_adc.c