[PATCH] clk: Fix error checking of dev_read_addr_ptr