mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 07:03:37 +02:00
rk30: clock: clk_get_parent return error when clk invalid
This commit is contained in:
parent
03ff0147bd
commit
fd8103d56a
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user