|
|
@@ -45,7 +45,7 @@ Signed-off-by: Christian Marangi <[email protected]>
|
|
|
obj-$(CONFIG_PM_DEVFREQ_EVENT) += event/
|
|
|
--- /dev/null
|
|
|
+++ b/drivers/devfreq/ipq806x-fab-devfreq.c
|
|
|
-@@ -0,0 +1,155 @@
|
|
|
+@@ -0,0 +1,153 @@
|
|
|
+// SPDX-License-Identifier: GPL-2.0
|
|
|
+
|
|
|
+#include <linux/kernel.h>
|
|
|
@@ -168,7 +168,7 @@ Signed-off-by: Christian Marangi <[email protected]>
|
|
|
+ return PTR_ERR(clk);
|
|
|
+};
|
|
|
+
|
|
|
-+static int ipq806x_fab_remove(struct platform_device *pdev)
|
|
|
++static void ipq806x_fab_remove(struct platform_device *pdev)
|
|
|
+{
|
|
|
+ struct ipq806x_fab_data *data = dev_get_drvdata(&pdev->dev);
|
|
|
+
|
|
|
@@ -179,8 +179,6 @@ Signed-off-by: Christian Marangi <[email protected]>
|
|
|
+ clk_put(data->ddr_clk);
|
|
|
+
|
|
|
+ dev_pm_opp_remove_table(&pdev->dev);
|
|
|
-+
|
|
|
-+ return 0;
|
|
|
+};
|
|
|
+
|
|
|
+static const struct of_device_id ipq806x_fab_match_table[] = {
|
|
|
@@ -190,7 +188,7 @@ Signed-off-by: Christian Marangi <[email protected]>
|
|
|
+
|
|
|
+static struct platform_driver ipq806x_fab_driver = {
|
|
|
+ .probe = ipq806x_fab_probe,
|
|
|
-+ .remove = ipq806x_fab_remove,
|
|
|
++ .remove_new = ipq806x_fab_remove,
|
|
|
+ .driver = {
|
|
|
+ .name = "ipq806x-fab-scaling",
|
|
|
+ .of_match_table = ipq806x_fab_match_table,
|