Skip to content

Commit d2a97eb

Browse files
Dan Carpentergregkh
authored andcommitted
PM / clk: signedness bug in of_pm_clk_add_clks()
commit 5e2e2f9 upstream. "count" needs to be signed for the error handling to work. I made "i" signed as well so they match. Fixes: 02113ba (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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 2adc254 commit d2a97eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/base/power/clock_ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ EXPORT_SYMBOL_GPL(of_pm_clk_add_clk);
185185
int of_pm_clk_add_clks(struct device *dev)
186186
{
187187
struct clk **clks;
188-
unsigned int i, count;
188+
int i, count;
189189
int ret;
190190

191191
if (!dev || !dev->of_node)

0 commit comments

Comments
 (0)