PM / OPP: fix warning in of_free_opp_table()
authorDmitry Torokhov <dtor@chromium.org>
Tue, 16 Dec 2014 23:09:37 +0000 (15:09 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 18 Dec 2014 00:42:49 +0000 (01:42 +0100)
commit0fe30da2cb43782ee62d30c00a273d6934e5370e
tree487989abe98bd00cb36a4613b4805eafa15ad344
parentb02ded246d011d0eb22efc178ee711b636214083
PM / OPP: fix warning in of_free_opp_table()

Not having OPP defined for a device is not a crime, we should not splat
warning in this case. Also, it seems that we are ready to accept invalid
dev (find_device_opp will return ERR_PTR(-EINVAL) then) so let's not
crash in dev_name() in such case.

Signed-off-by: Dmitry Torokhov <dtor@chromium.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/opp.c