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

Commit f3f8290c authored by Paul Mundt's avatar Paul Mundt
Browse files

sh: clkfwk: Handle clk_get_sys() returning an ERR_PTR.



clk_get() needs to also perform an IS_ERR() check to see whether
clk_get_sys() failed or not.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 0dae8957
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -399,7 +399,7 @@ struct clk *clk_get(struct device *dev, const char *id)
	int idno;

	clk = clk_get_sys(dev_id, id);
	if (clk)
	if (clk && !IS_ERR(clk))
		return clk;

	if (dev == NULL || dev->bus != &platform_bus_type)