diff options
author | Anuj Gangwar <anujg@nvidia.com> | 2018-11-14 01:26:59 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-12-18 01:56:42 -0500 |
commit | 0d77473194fd720981d9a1ab2653bf4100993889 (patch) | |
tree | 936433c0fd35644a7cb310b93feaf33665a54aaa | |
parent | 8438dbee00b82b2fc571b3cba8fceee6364b4e23 (diff) |
nvpmodel: fix lockdep warning
Dynamically allocated sysfs attributes must
call sysfs_attr_init if lockdep is enabled.
Bug 200464909
Bug 200451465
Change-Id: I4049f09a0de92813898fd809483bd2b57f40a0cd
Signed-off-by: Anuj Gangwar <anujg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1950403
(cherry picked from commit 30e6337ccc0701c198371323e67ab3c255fe25ea)
Reviewed-on: https://git-master.nvidia.com/r/1972843
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Leon Yu <leoyu@nvidia.com>
Tested-by: Leon Yu <leoyu@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-rw-r--r-- | drivers/nvpmodel/nvpmodel_emc_cap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nvpmodel/nvpmodel_emc_cap.c b/drivers/nvpmodel/nvpmodel_emc_cap.c index dbff63947..be9d6a12d 100644 --- a/drivers/nvpmodel/nvpmodel_emc_cap.c +++ b/drivers/nvpmodel/nvpmodel_emc_cap.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * | 3 | * |
4 | * NVIDIA Tegra Nvpmodel driver for Tegra chips | 4 | * NVIDIA Tegra Nvpmodel driver for Tegra chips |
5 | * | 5 | * |
6 | * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. | 6 | * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved. |
7 | * | 7 | * |
8 | * This program is free software; you can redistribute it and/or modify it | 8 | * This program is free software; you can redistribute it and/or modify it |
9 | * under the terms and conditions of the GNU General Public License, | 9 | * under the terms and conditions of the GNU General Public License, |
@@ -211,7 +211,7 @@ static int __init nvpmodel_clk_cap_init(void) | |||
211 | clk_name); | 211 | clk_name); |
212 | continue; | 212 | continue; |
213 | } | 213 | } |
214 | 214 | sysfs_attr_init(&(clks[i].attr.attr)); | |
215 | clks[i].attr.attr.mode = 0660; | 215 | clks[i].attr.attr.mode = 0660; |
216 | clks[i].attr.show = clk_cap_show; | 216 | clks[i].attr.show = clk_cap_show; |
217 | clks[i].attr.store = clk_cap_store; | 217 | clks[i].attr.store = clk_cap_store; |