kernel/drivers/cpuidle/dt_idle_states.c
.. .. @@ -223,6 +223,6 @@ 223 223 * also be 0 on platforms with missing DT idle states or legacy DT 224 224 * configuration predating the DT idle states bindings. 225 225 */ 226 - return i;226 + return state_idx - start_idx;227 227 } 228 228 EXPORT_SYMBOL_GPL(dt_init_idle_driver);