mmc: sunxi: Check the value returned by clk_round_rate
authorJean-Francois Moine <moinejf@free.fr>
Tue, 23 Aug 2016 08:51:04 +0000 (10:51 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 26 Sep 2016 19:31:12 +0000 (21:31 +0200)
commit63311bece02abad40ae442e6deba2a2e522949fb
tree368bf6c345faf643ddf6c6863ef81a20df6c066d
parentb2db9c6743f2622f279af3a022a47a08e6e6f2c9
mmc: sunxi: Check the value returned by clk_round_rate

clk_round_rate() may return an error. Check it.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sunxi-mmc.c