hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/clk/renesas/r9a06g032-clocks.c
....@@ -386,7 +386,7 @@
386386 int error;
387387 int index;
388388
389
- while (!of_parse_phandle_with_args(np, "clocks", "#clock-cells", i,
389
+ while (!of_parse_phandle_with_args(np, "clocks", "#clock-cells", i++,
390390 &clkspec)) {
391391 if (clkspec.np != pd->dev.of_node)
392392 continue;
....@@ -399,7 +399,6 @@
399399 if (error)
400400 return error;
401401 }
402
- i++;
403402 }
404403
405404 return 0;