thermal: fix lockdep splat from qcom driver

The attribute dynamically allocated should be initialized
with sysfs_attr_init. Otherwise, lockdep slaps us.

Bug: 122096541
Bug: 123720375
Change-Id: I5f8aa327729fb51b955b148b7fb5dc0f85d3fbbb
Signed-off-by: Minchan Kim <minchan@google.com>
Signed-off-by: Miguel de Dios <migueldedios@google.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
This commit is contained in:
Miguel de Dios
2019-02-07 17:06:56 -08:00
committed by UtsavBalar1231
parent 936e59cc2f
commit b677cc6540

View File

@@ -758,6 +758,7 @@ static int limits_dcvs_probe(struct platform_device *pdev)
hw->lmh_freq_attr.attr.name = "lmh_freq_limit";
hw->lmh_freq_attr.show = lmh_freq_limit_show;
hw->lmh_freq_attr.attr.mode = 0444;
sysfs_attr_init(&hw->lmh_freq_attr.attr);
device_create_file(&pdev->dev, &hw->lmh_freq_attr);
probe_exit: