diff options
| author | Heiner Kallweit <[email protected]> | 2017-03-04 13:25:14 +0100 |
|---|---|---|
| committer | Ulf Hansson <[email protected]> | 2017-04-24 21:41:10 +0200 |
| commit | cac3a47855c24bf060e58977473747ef3de7dedf (patch) | |
| tree | 0833795bd5314ae430ff8ae1e3d01ab0481af9f6 /lib/mpi/mpi-internal.h | |
| parent | e9883ef228e5c128d34143ae87c97f555f79620c (diff) | |
mmc: meson-gx: fix error path in meson_mmc_clk_init / meson_mmc_probe
The condition should be "if (ret)" as the disable/unprepare is
supposed to be executed if the previous command fails.
In addition adjust the error path in probe to properly deal
with the case that cfg_div_clk can be registered successfully
but enable/prepare fails.
In this case we shouldn't call clk_disable_unprepare.
Reported-by: MichaĆ Zegan <[email protected]>
Signed-off-by: Heiner Kallweit <[email protected]>
Acked-by: Kevin Hilman <[email protected]>
Tested-by: Kevin Hilman <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions