mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
cpufreq: qcom: cpufreq-hw: Initialize sysfs attribute before usage
When CONFIG_DEBUG_LOCK_ALLOC is enabled it requires the sysfs attribute to be initialized. Thus add support for the same. Change-Id: I8a679be433dce03ab2bb58d5bea60933e1ab8ef2 Signed-off-by: Taniya Das <tdas@codeaurora.org>
This commit is contained in:
parent
0611102d4e
commit
cbe206941a
1 changed files with 2 additions and 0 deletions
|
|
@ -343,6 +343,8 @@ static int qcom_cpufreq_hw_cpu_init(struct cpufreq_policy *policy)
|
|||
c->is_irq_requested = true;
|
||||
writel_relaxed(0x0, c->base + offsets[REG_INTR_CLR]);
|
||||
c->is_irq_enabled = true;
|
||||
|
||||
sysfs_attr_init(&c->freq_limit_attr.attr);
|
||||
c->freq_limit_attr.attr.name = "dcvsh_freq_limit";
|
||||
c->freq_limit_attr.show = dcvsh_freq_limit_show;
|
||||
c->freq_limit_attr.attr.mode = 0444;
|
||||
|
|
|
|||
Loading…
Reference in a new issue