summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2012-10-03 23:38:55 -0700
committerMike Turquette <mturquette@linaro.org>2012-10-29 11:05:03 -0700
commit2ac6b1f50a397580b8dc28f2833e54af7926fc71 (patch)
treed9fbe4f63392d462b41296b9407ec622d9212823 /drivers/mfd
parent7ce3e8ccbac708229ba8c40c9c2a43ca7fcdb3ae (diff)
downloadop-kernel-dev-2ac6b1f50a397580b8dc28f2833e54af7926fc71.zip
op-kernel-dev-2ac6b1f50a397580b8dc28f2833e54af7926fc71.tar.gz
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 <sboyd@codeaurora.org> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/mfd')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud