Loading drivers/power/qcom/Kconfig +6 −6 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ config APSS_CORE_EA and temperature information to the scheduler. config MSM_APM bool "Qualcomm Technologies Inc platform specific APM driver" bool "Qualcomm Technologies, Inc. platform specific APM driver" help Platform specific driver to manage the power source of memory arrays. Interfaces with regulator drivers to ensure Loading drivers/power/qcom/apm.c +3 −5 Original line number Diff line number Diff line Loading @@ -898,7 +898,7 @@ static void apm_debugfs_init(struct msm_apm_ctrl_dev *ctrl_dev) return; } temp = debugfs_create_file("supply", S_IRUGO, ctrl_dev->debugfs, temp = debugfs_create_file("supply", 0444, ctrl_dev->debugfs, ctrl_dev, &apm_supply_fops); if (IS_ERR_OR_NULL(temp)) { pr_err("supply mode creation failed\n"); Loading Loading @@ -932,7 +932,7 @@ static void apm_debugfs_base_remove(void) #endif static struct of_device_id msm_apm_match_table[] = { static const struct of_device_id msm_apm_match_table[] = { { .compatible = "qcom,msm-apm", .data = (void *)(uintptr_t)MSM8996_ID, Loading Loading @@ -967,10 +967,8 @@ static int msm_apm_probe(struct platform_device *pdev) return -ENODEV; ctrl = devm_kzalloc(dev, sizeof(*ctrl), GFP_KERNEL); if (!ctrl) { dev_err(dev, "MSM APM controller memory allocation failed\n"); if (!ctrl) return -ENOMEM; } INIT_LIST_HEAD(&ctrl->list); spin_lock_init(&ctrl->lock); Loading Loading
drivers/power/qcom/Kconfig +6 −6 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ config APSS_CORE_EA and temperature information to the scheduler. config MSM_APM bool "Qualcomm Technologies Inc platform specific APM driver" bool "Qualcomm Technologies, Inc. platform specific APM driver" help Platform specific driver to manage the power source of memory arrays. Interfaces with regulator drivers to ensure Loading
drivers/power/qcom/apm.c +3 −5 Original line number Diff line number Diff line Loading @@ -898,7 +898,7 @@ static void apm_debugfs_init(struct msm_apm_ctrl_dev *ctrl_dev) return; } temp = debugfs_create_file("supply", S_IRUGO, ctrl_dev->debugfs, temp = debugfs_create_file("supply", 0444, ctrl_dev->debugfs, ctrl_dev, &apm_supply_fops); if (IS_ERR_OR_NULL(temp)) { pr_err("supply mode creation failed\n"); Loading Loading @@ -932,7 +932,7 @@ static void apm_debugfs_base_remove(void) #endif static struct of_device_id msm_apm_match_table[] = { static const struct of_device_id msm_apm_match_table[] = { { .compatible = "qcom,msm-apm", .data = (void *)(uintptr_t)MSM8996_ID, Loading Loading @@ -967,10 +967,8 @@ static int msm_apm_probe(struct platform_device *pdev) return -ENODEV; ctrl = devm_kzalloc(dev, sizeof(*ctrl), GFP_KERNEL); if (!ctrl) { dev_err(dev, "MSM APM controller memory allocation failed\n"); if (!ctrl) return -ENOMEM; } INIT_LIST_HEAD(&ctrl->list); spin_lock_init(&ctrl->lock); Loading