Skip to contentSkip to conversation

PM / devfreq: exynos: remove unused function parameter

PATCH Applied Jeongjun Park 2 participants 2 messages Jan 10, 2025 – Jan 11, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PM / devfreq: exynos: remove unused function parameter

exynos_bus_parse_of() still declares a parameter struct device_node that is not used yet. This parameter is unnecessary and should be removed.

---
 drivers/devfreq/exynos-bus.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/devfreq/exynos-bus.c +2 -3
index 7d06c476d8e9..b9ea7ad2e51b 100644
@@ -236,8 +236,7 @@ static int exynos_bus_parent_parse_of(struct device_node *np,
 	return ret;
 }
 
-static int exynos_bus_parse_of(struct device_node *np,
-			      struct exynos_bus *bus)
+static int exynos_bus_parse_of(struct exynos_bus *bus)
 {
 	struct device *dev = bus->dev;
 	struct dev_pm_opp *opp;
@@ -408,7 +407,7 @@ static int exynos_bus_probe(struct platform_device *pdev)
 	}
 
 	/* Parse the device-tree to get the resource information */
-	ret = exynos_bus_parse_of(np, bus);
+	ret = exynos_bus_parse_of(bus);
 	if (ret < 0)
 		goto err_reg;
 

--

Applied
#1 lore raw

Hi,

Applied it. Thanks

Quoted 34 lines · Jeongjun Park

exynos_bus_parse_of() still declares a parameter struct device_node that is not used yet. This parameter is unnecessary and should be removed.

---
 drivers/devfreq/exynos-bus.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/devfreq/exynos-bus.c +2 -4
index 7d06c476d8e9..b9ea7ad2e51b 100644
@@ -236,8 +236,7 @@ static int exynos_bus_parent_parse_of(struct device_node *np,
        return ret;
 }
 
-static int exynos_bus_parse_of(struct device_node *np,
-                             struct exynos_bus *bus)
+static int exynos_bus_parse_of(struct exynos_bus *bus)
 {
        struct device *dev = bus->dev;
        struct dev_pm_opp *opp;
@@ -408,7 +407,7 @@ static int exynos_bus_probe(struct platform_device *pdev)
        }
 
        /* Parse the device-tree to get the resource information */
-       ret = exynos_bus_parse_of(np, bus);
+       ret = exynos_bus_parse_of(bus);
        if (ret < 0)
                goto err_reg;
 
--
Signature · 3 lines
Best Regards,
Chanwoo Choi
Samsung Electronics