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

Commit 60325e87 authored by Junjie Wu's avatar Junjie Wu
Browse files

clkdev: Remove of_clk_get error message



of_clk_get_by_name will print an error message if it can't find the
clock from device tree. However, that doesn't indicate clk_get will
fail. It can still succeed in clk_get_sys. Remove the error message
to avoid confusion.

Driver calling clk_get should check return value and print error
messages in their code.

Change-Id: I0627fa85cbb6260c4d5b0e8f51470198c82840ee
Signed-off-by: default avatarJunjie Wu <junjiew@codeaurora.org>
parent 155357d0
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -72,11 +72,8 @@ struct clk *of_clk_get_by_name(struct device_node *np, const char *name)
		clk = of_clk_get(np, index);
		if (!IS_ERR(clk))
			break;
		else if (name && index >= 0) {
			pr_err("ERROR: could not get clock %s:%s(%i)\n",
				np->full_name, name ? name : "", index);
		else if (name && index >= 0)
			return clk;
		}

		/*
		 * No matching clock found on this node.  If the parent node