cpufreq: rockchip: do not select CONFIG_CPUFREQ_DT_PLATDEV for cpufreq-dt

cpufreq-dt-platdev.c is useless on rockchip platform, remove it and save
memory.

$ ./scripts/bloat-o-meter vmlinux_before vmlinux
add/remove: 0/4 grow/shrink: 0/0 up/down: 0/-18284 (-18284)
Function                                     old     new   delta
__initcall_cpufreq_dt_platdev_init6            4       -      -4
cpufreq_dt_platdev_init                      248       -    -248
blacklist                                   8232       -   -8232
whitelist                                   9800       -   -9800
Total: Before=10211366, After=10193082, chg -0.18%

Change-Id: Ibcc15aa3a8b13afa208c77979b75c617aeaef5fb
Signed-off-by: Liang Chen <cl@rock-chips.com>
This commit is contained in:
Liang Chen
2021-08-17 20:38:51 +08:00
committed by Tao Huang
parent 745d67d98a
commit 289a92b87e

View File

@@ -246,7 +246,7 @@ config CPUFREQ_DT
depends on HAVE_CLK && OF
# if CPU_THERMAL is on and THERMAL=m, CPUFREQ_DT cannot be =y:
depends on !CPU_THERMAL || THERMAL
select CPUFREQ_DT_PLATDEV
select CPUFREQ_DT_PLATDEV if !ARM_ROCKCHIP_CPUFREQ
select PM_OPP
help
This adds a generic DT based cpufreq driver for frequency management.