forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/cpuidle/dt_idle_states.c
....@@ -223,6 +223,6 @@
223223 * also be 0 on platforms with missing DT idle states or legacy DT
224224 * configuration predating the DT idle states bindings.
225225 */
226
- return i;
226
+ return state_idx - start_idx;
227227 }
228228 EXPORT_SYMBOL_GPL(dt_init_idle_driver);