Skip to content
Commit fc850f39 authored by Daniel Lezcano's avatar Daniel Lezcano Committed by Len Brown
Browse files

cpuidle: use the driver's state_count as default



If the state_count is not initialized for the device use
the driver's state count as the default. That will prevent
to add it manually in the cpuidle driver initialization
routine and will save us from duplicate line of code.

Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 3a53396b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment