Change-Id: Ic997d8c9967a899aea29e906074397fa3e2706e9
Signed-off-by: Taekki Kim <taekki.kim@samsung.com>
return -EAGAIN;
}
- if (*target_freq >= dm->min_freq && *target_freq < dm->max_freq)
- dm->target_freq = *target_freq;
- if (*target_freq < dm->min_freq)
+ dm->target_freq = *target_freq;
+
+ if (dm->target_freq < dm->min_freq)
dm->target_freq = dm->min_freq;
- if (*target_freq >= dm->max_freq) {
+ if (dm->target_freq >= dm->max_freq) {
dm->target_freq = dm->max_freq;
relation = EXYNOS_DM_RELATION_H;
}