Skip to content

Commit

Permalink
PM / devfreq: exynos: remove unused function parameter
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeongjun Park authored and Chanwoo Choi committed Jan 11, 2025
1 parent ed33fbb commit f3253b2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/devfreq/exynos-bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit f3253b2

Please sign in to comment.