drivers: qcom: Fix a parameter for sysfs_attr_init()

Add back a missing pointer reference.

Fixes: 89f1fad ("drivers: qcom: Add SoC sleep stats driver")
Change-Id: Ic0dedbad6eb8554f34ee366c68092b623f776714
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
This commit is contained in:
Jordan Crouse 2019-12-06 14:08:36 -07:00
commit 646129c1f1

View file

@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2011-2019, The Linux Foundation. All rights reserved.
* Copyright (c) 2011-2020, The Linux Foundation. All rights reserved.
*/
#define pr_fmt(fmt) "%s: " fmt, __func__
@ -140,7 +140,7 @@ static int soc_sleep_stats_create_sysfs(struct platform_device *pdev,
if (!drv->kobj)
return -ENOMEM;
sysfs_attr_init(drv->ka.attr);
sysfs_attr_init(&drv->ka.attr);
drv->ka.attr.mode = 0444;
drv->ka.attr.name = "stats";
drv->ka.show = stats_show;