[DRIVERS] clk: Bug fixes for common device tree based clocking framework

This patch fixes minor bugs introduce while porting device tree based
clocking from Linux to Xvisor.

Signed-off-by: Anup Patel <anup@brainfault.org>