* [PATCH] PM / devfreq: exynos: remove unused function parameter
@ 2025-01-10 17:35 Jeongjun Park
2025-01-11 12:11 ` Chanwoo Choi
0 siblings, 1 reply; 2+ messages in thread
From: Jeongjun Park @ 2025-01-10 17:35 UTC (permalink / raw)
To: cw00.choi, myungjoo.ham, kyungmin.park
Cc: krzk, alim.akhtar, linux-pm, linux-samsung-soc, linux-arm-kernel,
linux-kernel, 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.
Signed-off-by: Jeongjun Park <aha310510@gmail.com>
---
drivers/devfreq/exynos-bus.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/devfreq/exynos-bus.c b/drivers/devfreq/exynos-bus.c
index 7d06c476d8e9..b9ea7ad2e51b 100644
--- a/drivers/devfreq/exynos-bus.c
+++ b/drivers/devfreq/exynos-bus.c
@@ -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;
--
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] PM / devfreq: exynos: remove unused function parameter
2025-01-10 17:35 [PATCH] PM / devfreq: exynos: remove unused function parameter Jeongjun Park
@ 2025-01-11 12:11 ` Chanwoo Choi
0 siblings, 0 replies; 2+ messages in thread
From: Chanwoo Choi @ 2025-01-11 12:11 UTC (permalink / raw)
To: Jeongjun Park
Cc: cw00.choi, myungjoo.ham, kyungmin.park, krzk, alim.akhtar,
linux-pm, linux-samsung-soc, linux-arm-kernel, linux-kernel
Hi,
Applied it. Thanks
On Sat, Jan 11, 2025 at 2:35 AM Jeongjun Park <aha310510@gmail.com> wrote:
>
> exynos_bus_parse_of() still declares a parameter struct device_node that
> is not used yet. This parameter is unnecessary and should be removed.
>
> Signed-off-by: Jeongjun Park <aha310510@gmail.com>
> ---
> drivers/devfreq/exynos-bus.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/devfreq/exynos-bus.c b/drivers/devfreq/exynos-bus.c
> index 7d06c476d8e9..b9ea7ad2e51b 100644
> --- a/drivers/devfreq/exynos-bus.c
> +++ b/drivers/devfreq/exynos-bus.c
> @@ -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;
>
> --
>
--
Best Regards,
Chanwoo Choi
Samsung Electronics
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-01-11 12:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-10 17:35 [PATCH] PM / devfreq: exynos: remove unused function parameter Jeongjun Park
2025-01-11 12:11 ` Chanwoo Choi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox