[COMMON] dvfs manager: svace fix: fix type mismatch
authorEunok Jo <eunok25.jo@samsung.com>
Tue, 7 Feb 2017 10:53:10 +0000 (19:53 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:26:06 +0000 (17:26 +0900)
WGID: 96922, 97112

Change-Id: Iffef18b92ffa67e1b5d77a4c023c6237eda3fb35
Signed-off-by: Eunok Jo <eunok25.jo@samsung.com>
drivers/soc/samsung/exynos-dm.c

index e0b05647386ba35c5a25fd74d59c3545b14aa001..7b848f8af70593eae8b0e3e2db40983f1f66aeac 100644 (file)
@@ -752,7 +752,7 @@ int DM_CALL(enum exynos_dm_type dm_type, unsigned long *target_freq)
        do_gettimeofday(&before);
 
        dm = &exynos_dm->dm_data[dm_type];
-       dm->gov_min_freq = *target_freq;
+       dm->gov_min_freq = (u32)(*target_freq);
 
        for (i = 0; i < DM_TYPE_END; i++)
                (&exynos_dm->dm_data[i])->constraint_checked = 0;
@@ -764,7 +764,7 @@ int DM_CALL(enum exynos_dm_type dm_type, unsigned long *target_freq)
                return -EAGAIN;
        }
 
-       dm->target_freq = *target_freq;
+       dm->target_freq = (u32)(*target_freq);
 
        if (dm->target_freq < dm->min_freq)
                dm->target_freq = dm->min_freq;