Skip to content

Commit 5e2e2f9

Browse files
Dan Carpenterrafaeljw
authored andcommitted
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: 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>
1 parent dfec4a8 commit 5e2e2f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)