diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2015-11-23 08:43:24 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2015-11-26 19:15:54 +0100 |
commit | 66362c9afc1d4a806280b9e3646d2d0a26cf83e9 (patch) | |
tree | 1c7143665f8daf14d5b6e8eef0d395b2c83325e2 /arch/arm64/include/asm/cpufeature.h | |
parent | arm64: efi: deal with NULL return value of early_memremap() (diff) | |
download | linux-66362c9afc1d4a806280b9e3646d2d0a26cf83e9.tar.xz linux-66362c9afc1d4a806280b9e3646d2d0a26cf83e9.zip |
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>
Diffstat (limited to 'arch/arm64/include/asm/cpufeature.h')
0 files changed, 0 insertions, 0 deletions