From: Stephen Boyd Date: Thu, 4 Oct 2012 06:38:55 +0000 (-0700) Subject: clk: Don't return negative numbers for unsigned values with !clk X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~93^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ac6b1f50a397580b8dc28f2833e54af7926fc71;p=pandora-kernel.git clk: Don't return negative numbers for unsigned values with !clk Some of the helper functions return negative error codes if passed a NULL clock. This can lead to confusing behavior when the expected return value is unsigned. Fix up these accessors so that they return unsigned values (or bool in the case of is_enabled). This way we can't interpret NULL clocks as having valid and interesting values. Signed-off-by: Stephen Boyd Signed-off-by: Mike Turquette --- Reading git-diff-tree failed