cpufreq: interactive: fix cpufreq object duplicate creatation in sysfs
authorRocky Hao <rocky.hao@rock-chips.com>
Sat, 5 Mar 2016 03:06:12 +0000 (11:06 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 7 Mar 2016 09:49:18 +0000 (17:49 +0800)
commit857ad0187f6259e429df117480490c1fc587bc36
tree9616ea09a69bf54c31a4e96b331dea0e7021c35c
parent275af0eee4ac16ec74289a7071c32a29b47b7b29
cpufreq: interactive: fix cpufreq object duplicate creatation in sysfs

[    4.216722] sysfs: cannot create duplicate filename '/devices/system/cpu/cpufreq'
[    4.233798] ------------[ cut here ]------------
[    4.244376] WARNING: at fs/sysfs/dir.c:31
[    4.253556]
[    4.256975] CPU: 3 PID: 1 Comm: swapper/0 Not tainted 4.4.0 #156
[    4.270730] Hardware name: Rockchip SDK tb board (DT)
[    4.282302] task: ffffffc039670000 ti: ffffffc039678000 task.ti: ffffffc039678000
[    4.299444] PC is at sysfs_warn_dup+0x5c/0x78
[    4.309422] LR is at sysfs_warn_dup+0x5c/0x78

Change-Id: Id21fe74dc082ec6c94fcb3e0cc11b78226549f7d
Fixes: bc68f6c4efbd ("cpufreq: interactive: build fixes for 4.4")
Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com>
drivers/cpufreq/cpufreq_interactive.c