diff options
-rw-r--r-- | sound/soc/codecs/arizona.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/arizona.c b/sound/soc/codecs/arizona.c index 29202610dd0d..9015b44a9e11 100644 --- a/sound/soc/codecs/arizona.c +++ b/sound/soc/codecs/arizona.c | |||
@@ -1901,7 +1901,7 @@ static int arizona_is_enabled_fll(struct arizona_fll *fll) | |||
1901 | static int arizona_enable_fll(struct arizona_fll *fll) | 1901 | static int arizona_enable_fll(struct arizona_fll *fll) |
1902 | { | 1902 | { |
1903 | struct arizona *arizona = fll->arizona; | 1903 | struct arizona *arizona = fll->arizona; |
1904 | int ret; | 1904 | unsigned long time_left; |
1905 | bool use_sync = false; | 1905 | bool use_sync = false; |
1906 | int already_enabled = arizona_is_enabled_fll(fll); | 1906 | int already_enabled = arizona_is_enabled_fll(fll); |
1907 | struct arizona_fll_cfg cfg; | 1907 | struct arizona_fll_cfg cfg; |
@@ -1977,9 +1977,9 @@ static int arizona_enable_fll(struct arizona_fll *fll) | |||
1977 | regmap_update_bits_async(arizona->regmap, fll->base + 1, | 1977 | regmap_update_bits_async(arizona->regmap, fll->base + 1, |
1978 | ARIZONA_FLL1_FREERUN, 0); | 1978 | ARIZONA_FLL1_FREERUN, 0); |
1979 | 1979 | ||
1980 | ret = wait_for_completion_timeout(&fll->ok, | 1980 | time_left = wait_for_completion_timeout(&fll->ok, |
1981 | msecs_to_jiffies(250)); | 1981 | msecs_to_jiffies(250)); |
1982 | if (ret == 0) | 1982 | if (time_left == 0) |
1983 | arizona_fll_warn(fll, "Timed out waiting for lock\n"); | 1983 | arizona_fll_warn(fll, "Timed out waiting for lock\n"); |
1984 | 1984 | ||
1985 | return 0; | 1985 | return 0; |