From b61c43c09f5e2b9bf8f340034c5ef1db8c64efa5 Mon Sep 17 00:00:00 2001 From: Stephen Boyd Date: Mon, 2 Feb 2015 14:11:25 -0800 Subject: [PATCH] clk: clk_set_parent() with current parent shouldn't fail If a driver calls clk_set_parent(clk, parent) and parent is the current parent of clk we shouldn't fail in any case. Unfortunately if clk is a read-only mux we return -ENOSYS because we think we can't change the parent, except for in this special case where we don't actually need to change the parent at all. Return 0 in such a situation. Signed-off-by: Stephen Boyd Acked-by: Philipp Zabel Signed-off-by: Michael Turquette --- Reading git-format-patch failed