]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
qualcommax: 6.12: apm: change remove to void
authorRobert Marko <robimarko@gmail.com>
Fri, 9 May 2025 12:06:37 +0000 (14:06 +0200)
committerRobert Marko <robimarko@gmail.com>
Fri, 16 May 2025 15:57:40 +0000 (17:57 +0200)
Remove op is now of a void type, update APM.

Link: https://github.com/openwrt/openwrt/pull/18795
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/qualcommax/patches-6.12/0900-power-Add-Qualcomm-APM.patch

index 0b573dfdd9d781b01fee7ce3ffd895ab13d85672..a83408ba43cb50651dfc5b3cfab4d9d71ab4f692 100644 (file)
@@ -49,7 +49,7 @@ Signed-off-by: Robert Marko <robimarko@gmail.com>
 +obj-$(CONFIG_QCOM_APM)                += apm.o
 --- /dev/null
 +++ b/drivers/power/qcom/apm.c
-@@ -0,0 +1,943 @@
+@@ -0,0 +1,941 @@
 +/*
 + * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
 + *
@@ -952,7 +952,7 @@ Signed-off-by: Robert Marko <robimarko@gmail.com>
 +      return ret;
 +}
 +
-+static int msm_apm_remove(struct platform_device *pdev)
++static void msm_apm_remove(struct platform_device *pdev)
 +{
 +      struct msm_apm_ctrl_dev *ctrl_dev;
 +
@@ -963,8 +963,6 @@ Signed-off-by: Robert Marko <robimarko@gmail.com>
 +              mutex_unlock(&apm_ctrl_list_mutex);
 +              apm_debugfs_deinit(ctrl_dev);
 +      }
-+
-+      return 0;
 +}
 +
 +static struct platform_driver msm_apm_driver = {