mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
rk30: clock: clk_get_parent return error when clk invalid
This commit is contained in:
@@ -445,6 +445,9 @@ struct clk *rk30_clk_get_parent(struct clk *clk)
|
||||
struct clk *clk_get_parent(struct clk *clk)
|
||||
#endif
|
||||
{
|
||||
if (clk == NULL || IS_ERR(clk)) {
|
||||
return ERR_PTR(-EINVAL);
|
||||
}
|
||||
return clk->parent;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user