ARM: 8585/1: cpuidle: fix !cpuidle_ops[cpu].init case during init
authorJisheng Zhang <jszhang@marvell.com>
Thu, 14 Jul 2016 10:37:27 +0000 (11:37 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 14 Jul 2016 15:30:44 +0000 (16:30 +0100)
commitf222a7695219217c7d8ad9f842242ed223e2a1a4
treecb3a83cd2a5a7494ceff25d9941db75b4afb9abc
parent1a695a905c18548062509178b98bc91e67510864
ARM: 8585/1: cpuidle: fix !cpuidle_ops[cpu].init case during init

Let's assume cpuidle_ops exists but it doesn't implement the according
init callback, current arm_cpuidle_init() will return success to its
caller, but in fact it should return -EOPNOTSUPP.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/cpuidle.c
This page took 0.033888 seconds and 5 git commands to generate.