PM / clk: signedness bug in of_pm_clk_add_clks()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 23 Aug 2018 13:59:25 +0000 (16:59 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 24 Aug 2018 09:52:34 +0000 (11:52 +0200)
commit5e2e2f9f76e157063a656351728703cb02b068f1
tree8507dbeeae5c515971ff44d255c64d2dee90b508
parentdfec4a8478e8e81483a94b663f13153bb7796800
PM / clk: signedness bug in of_pm_clk_add_clks()

"count" needs to be signed for the error handling to work.  I made "i"
signed as well so they match.

Fixes: 02113ba93ea4 (PM / clk: Add support for obtaining clocks from device-tree)
Cc: 4.6+ <stable@vger.kernel.org> # 4.6+
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/clock_ops.c