diff --git a/drivers/thermal/qcom/msm_lmh_dcvs.c b/drivers/thermal/qcom/msm_lmh_dcvs.c index 0c707624adb7..c462e5dae983 100644 --- a/drivers/thermal/qcom/msm_lmh_dcvs.c +++ b/drivers/thermal/qcom/msm_lmh_dcvs.c @@ -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: