X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=arch%2Fpowerpc%2Fperf%2Fhv-24x7.c;h=df956295c2a7ab3ede23e2a06e650d39943a1b17;hb=5b7f00a5967a3fdd8654ba6926930e672710ef63;hp=ec2eb20631d14f12bb6ffa310370a5eb230a9408;hpb=aefa441b150279dd8d25658e018898a3fe9a6769;p=cascardo%2Flinux.git diff --git a/arch/powerpc/perf/hv-24x7.c b/arch/powerpc/perf/hv-24x7.c index ec2eb20631d1..df956295c2a7 100644 --- a/arch/powerpc/perf/hv-24x7.c +++ b/arch/powerpc/perf/hv-24x7.c @@ -320,6 +320,8 @@ static struct attribute *device_str_attr_create_(char *name, char *str) if (!attr) return NULL; + sysfs_attr_init(&attr->attr.attr); + attr->var = str; attr->attr.attr.name = name; attr->attr.attr.mode = 0444;