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

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

Merge "clk: qcom: Check arguments to clk_set_parent"

parents 1d04cee1 6de805f9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -609,6 +609,8 @@ EXPORT_SYMBOL(clk_get_parent_sel);
int clk_set_parent(struct clk *clk, struct clk *parent)
{
	int rc = 0;
	if (IS_ERR_OR_NULL(clk))
		return -EINVAL;

	if (!clk->ops->set_parent && clk->parent == parent)
		return 0;