]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: efi: fix initcall return values
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 23 Nov 2015 07:43:24 +0000 (08:43 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 26 Nov 2015 18:15:54 +0000 (18:15 +0000)
commit5904a1953acea541e56ee09495398eb55b0b4c6b
tree1c7143665f8daf14d5b6e8eef0d395b2c83325e2
parenta4b68ee59b2512b424db7cbe58c84ef0fbee38d2
arm64: efi: fix initcall return values

Even though initcall return values are typically ignored, the
prototype is to return 0 on success or a negative errno value on
error. So fix the arm_enable_runtime_services() implementation to
return 0 on conditions that are not in fact errors, and return a
meaningful error code otherwise.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Matt Fleming <matt@codeblueprint.co.uk>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/efi.c