mmc: meson-mx-sdio: return correct error code
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 13 Oct 2017 11:19:43 +0000 (14:19 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 30 Oct 2017 10:49:42 +0000 (11:49 +0100)
commit7599b8493292ae28295127f617148b1c7394c27d
treeda3089d9bb1f32c55b959329207acb1bb1e57aeb
parent04fa0540255ee5707a1addf4c7c2a5ba4ac2c407
mmc: meson-mx-sdio: return correct error code

This has a copy and paste bug so we use "host->fixed_factor_clk" which
is a valid pointer instead of "host->cfg_div_clk" which holds the error
code.

Fixes: ed80a13bb4c4 ("mmc: meson-mx-sdio: Add a driver for the Amlogic Meson8 and Meson8b SoCs")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/meson-mx-sdio.c