Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cbe20694 authored by Taniya Das's avatar Taniya Das
Browse files

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: default avatarTaniya Das <tdas@codeaurora.org>
parent 0611102d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;