cpuidle: qcom-lpm-sysfs: Initialise attributes with sysfs_attr_init()
Dynamically allocated attributes should be initialized. This change initialises attributes with sysfs_attr_init(). Change-Id: If07f3d7397b9fb020fcbc8ed792d1f4ddad66108 Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
This commit is contained in:
parent
be0f273e59
commit
3ad420a779
@ -51,6 +51,7 @@ static int create_cluster_state_node(struct device *dev, struct qcom_cluster_nod
|
||||
if (!d->attrs)
|
||||
return -ENOMEM;
|
||||
|
||||
sysfs_attr_init(&attr->attr);
|
||||
attr->attr.name = "disable";
|
||||
attr->attr.mode = 0644;
|
||||
attr->show = cluster_idle_get;
|
||||
|
Loading…
Reference in New Issue
Block a user