mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
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:
parent
2e840e1daf
commit
646129c1f1
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue