From: Tero Kristo Date: Mon, 23 Feb 2015 19:06:08 +0000 (+0200) Subject: clk: ti: fix ti_clk_get_reg_addr error handling X-Git-Tag: omap-for-v4.1/prcm-dts^2~34 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c807dbedb5e5;p=pandora-kernel.git clk: ti: fix ti_clk_get_reg_addr error handling There is a case where NULL can be a valid return value for ti_clk_get_reg_addr, specifically the case where both the provider index and register offsets are zero. In this case, the current error checking against a NULL pointer will fail. Thus, change the API to return a ERR_PTR value in an error case, and change all the users of this API to check against IS_ERR instead. Signed-off-by: Tero Kristo Acked-by: Michael Turquette --- Reading git-diff-tree failed