From: Rajendra Nayak Date: Mon, 26 Mar 2012 13:31:48 +0000 (+0530) Subject: clk: Make clk_get_rate() return 0 on error X-Git-Tag: v3.5-rc1~71^2~6^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34e44fe87437b6a5aad856f15f7a849e5fc137aa;p=pandora-kernel.git clk: Make clk_get_rate() return 0 on error Most users of clk_get_rate() actually assume a non zero return value as a valid rate returned. Returing -EINVAL might confuse such users, so make it instead return zero on error. Besides the return value of clk_get_rate seems to be 'unsigned long'. Signed-off-by: Rajendra nayak Signed-off-by: Mike Turquette --- Reading git-diff-tree failed