diff options
author | Ben Dooks <ben.dooks@codethink.co.uk> | 2014-01-14 12:23:41 +0000 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-01-15 01:50:50 +0100 |
commit | afdd3ab315a4454ccb7895ddade2c20bdf91f5c6 (patch) | |
tree | 734d326769eed47343c9a74792c11943696a1cb4 /drivers/cpuidle | |
parent | 8a6720ec2020f01756154d9c272f88a6af76fb81 (diff) | |
download | op-kernel-dev-afdd3ab315a4454ccb7895ddade2c20bdf91f5c6.zip op-kernel-dev-afdd3ab315a4454ccb7895ddade2c20bdf91f5c6.tar.gz |
PM / clock_ops: check return of clk_enable() in pm_clk_resume()
The clk_enable() call in the pm_clk_resume() call returns an error
that is not being checked. If clk_enable() fails then we should
not set the state of the clock to PCE_STATUS_ENABLED.
Note, the issue of warning the user if this fails has not been
addressed in this patch as this is not the only place the driver
calls clk_enable().
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Reviewed-by: Ian Molton <ian.molton@codethink.co.uk>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpuidle')
0 files changed, 0 insertions, 0 deletions