clk: check valid clock by clk_valid()

Add valid check for clk->dev, it's useful when get optional
clock even when the clk point is valid, but its dev will be
NULL.

Reviewed-by: Simon Glass <sjg@chromium.org>
1 file changed