Commit b35c74da authored by Johannes Berg's avatar Johannes Berg Committed by Greg Kroah-Hartman
Browse files

sysfs: windfarm: init sysfs attributes

This is required for lockdep.
Signed-off-by: default avatarJohannes Berg <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 361795b1
......@@ -321,6 +321,7 @@ int wf_register_sensor(struct wf_sensor *new_sr)
list_add(&new_sr->link, &wf_sensors);
new_sr-> = new_sr->name;
new_sr->attr.attr.mode = 0444;
new_sr-> = wf_show_sensor;
......@@ -173,6 +173,7 @@ static struct smu_fan_control *smu_fan_create(struct device_node *node,
fct->fan_type = pwm_fan;
fct->ctrl.type = pwm_fan ? WF_CONTROL_PWM_FAN : WF_CONTROL_RPM_FAN;
/* We use the name & location here the same way we do for SMU sensors,
* see the comment in windfarm_smu_sensors.c. The locations are a bit
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment