qualcommax: pwm: use remove_new

Easy compability fix for kernel 6.12.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18660
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
Rosen Penev 2025-04-26 15:46:00 -07:00 committed by Christian Marangi
parent 24d7b20cf5
commit d183da890b
No known key found for this signature in database
GPG key ID: AC001D09ADBFEAD7

View file

@ -51,7 +51,7 @@ Signed-off-by: Devi Priya <quic_devipriy@quicinc.com>
obj-$(CONFIG_PWM_KEEMBAY) += pwm-keembay.o
--- /dev/null
+++ b/drivers/pwm/pwm-ipq.c
@@ -0,0 +1,282 @@
@@ -0,0 +1,280 @@
+// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
+/*
+ * Copyright (c) 2016-2017, 2020 The Linux Foundation. All rights reserved.
@ -306,14 +306,12 @@ Signed-off-by: Devi Priya <quic_devipriy@quicinc.com>
+ return ret;
+}
+
+static int ipq_pwm_remove(struct platform_device *pdev)
+static void ipq_pwm_remove(struct platform_device *pdev)
+{
+ struct ipq_pwm_chip *pwm = platform_get_drvdata(pdev);
+
+ pwmchip_remove(&pwm->chip);
+ clk_disable_unprepare(pwm->clk);
+
+ return 0;
+}
+
+static const struct of_device_id pwm_ipq_dt_match[] = {
@ -328,7 +326,7 @@ Signed-off-by: Devi Priya <quic_devipriy@quicinc.com>
+ .of_match_table = pwm_ipq_dt_match,
+ },
+ .probe = ipq_pwm_probe,
+ .remove = ipq_pwm_remove,
+ .remove_new = ipq_pwm_remove,
+};
+
+module_platform_driver(ipq_pwm_driver);