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

Commit 1feabf2f authored by Junjie Wu's avatar Junjie Wu Committed by Matt Wagantall
Browse files

clkdev: Return -EPROBE_DEFER when clock is not found



If clock provider registers later than its users, clk_get might fail.
Allow drivers to do deferred probing instead of failing them permanently.

Change-Id: Ibdb3442a65672ae1202934963cb3479dc7aea8e1
Signed-off-by: default avatarJunjie Wu <junjiew@codeaurora.org>
parent 2db54ae7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -171,7 +171,7 @@ struct clk *clk_get_sys(const char *dev_id, const char *con_id)
		cl = NULL;
	mutex_unlock(&clocks_mutex);

	return cl ? cl->clk : ERR_PTR(-ENOENT);
	return cl ? cl->clk : ERR_PTR(-EPROBE_DEFER);
}
EXPORT_SYMBOL(clk_get_sys);