PM: clock_ops: fix missing clk_prepare() return value check
authorAditya Pakki <pakki001@umn.edu>
Sat, 5 Jan 2019 19:58:45 +0000 (13:58 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 18 Jan 2019 10:47:07 +0000 (11:47 +0100)
commit40619f7dd3ef05ae7861bc60d401585d316e1374
tree4c04db826b89b69b351aea420db426f53841fe54
parent3b4ed2e2eb5583774a1ed4aa4596a5a3c55f2567
PM: clock_ops: fix missing clk_prepare() return value check

clk_prepare() can fail, so check its status and if it fails,
issue an error message and change the clock_entry_status to
PCE_STATUS_ERROR.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
[ rjw: Subject ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/clock_ops.c