iio: adc: xilinx: Handle return value of clk_prepare_enable
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Fri, 26 May 2017 06:37:41 +0000 (12:07 +0530)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Jun 2017 08:55:23 +0000 (09:55 +0100)
commit0a178fd7327e13ec7f8079a06a20b0ee42ade1eb
treeb41dae23b21ae6b45102f435d844d149bb857afd
parentec183bf8b5e5f950907705950cf3fd058b17ad1a
iio: adc: xilinx: 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>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/xilinx-xadc-core.c