hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/clk/rockchip/clk-pvtm.c
....@@ -106,11 +106,12 @@
106106 rockchip_clock_pvtm_delay(time_us);
107107
108108 check_cnt = 100;
109
- while (check_cnt--) {
109
+ while (check_cnt) {
110110 regmap_read(pvtm->grf, info->sta, &sta);
111111 if (sta & 0x1)
112112 break;
113113 udelay(4);
114
+ check_cnt--;
114115 }
115116
116117 if (check_cnt) {
....@@ -207,7 +208,6 @@
207208 .get_value = rockchip_clock_pvtm_get_value,
208209 .init_freq = rockchip_clock_pvtm_init_freq,
209210 };
210
-MODULE_DEVICE_TABLE(of, rockchip_clock_pvtm_match);
211211
212212 static const struct of_device_id rockchip_clock_pvtm_match[] = {
213213 {
....@@ -216,6 +216,7 @@
216216 },
217217 {}
218218 };
219
+MODULE_DEVICE_TABLE(of, rockchip_clock_pvtm_match);
219220
220221 static int rockchip_clock_pvtm_probe(struct platform_device *pdev)
221222 {