Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d91519a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "clk: msm: Fix dummy clock fixed rate setting issue"

parents c4d72c56 474100bc
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -64,7 +64,6 @@ struct clk dummy_clk = {
static void *dummy_clk_dt_parser(struct device *dev, struct device_node *np)
{
	struct clk *c;
	u32 rate;

	c = devm_kzalloc(dev, sizeof(*c), GFP_KERNEL);
	if (!c) {
@@ -73,9 +72,6 @@ static void *dummy_clk_dt_parser(struct device *dev, struct device_node *np)
	}
	c->ops = &clk_ops_dummy;

	if (!of_property_read_u32(np, "clock-frequency", &rate))
		c->rate = rate;

	return msmclk_generic_clk_init(dev, np, c);
}
MSMCLK_PARSER(dummy_clk_dt_parser, "qcom,dummy-clk", 0);
@@ -83,6 +79,11 @@ MSMCLK_PARSER(dummy_clk_dt_parser, "qcom,dummy-clk", 0);
static struct clk *of_dummy_get(struct of_phandle_args *clkspec,
				  void *data)
{
	u32 rate;

	if (!of_property_read_u32(clkspec->np, "clock-frequency", &rate))
		dummy_clk.rate = rate;

	return &dummy_clk;
}