summaryrefslogtreecommitdiff
path: root/arch/x86/cpu/baytrail
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-08-10 13:05:08 (GMT)
committerSimon Glass <sjg@chromium.org>2015-08-14 09:24:21 (GMT)
commit7e4be120e88974d49ebb4bcf837134cfb71efc8c (patch)
tree0f51a3f0d1447962b9b0f8cb5a9c6c3b5604e40f /arch/x86/cpu/baytrail
parent412400abaaa6ef02adff35419188689ea6d3ec7e (diff)
downloadu-boot-fsl-qoriq-7e4be120e88974d49ebb4bcf837134cfb71efc8c.tar.xz
x86: Allow pirq_init() to return an error
This function can fail. In this case we should return the error rather than swallowing it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/cpu/baytrail')
-rw-r--r--arch/x86/cpu/baytrail/valleyview.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/cpu/baytrail/valleyview.c b/arch/x86/cpu/baytrail/valleyview.c
index 610e9d9..225ea38 100644
--- a/arch/x86/cpu/baytrail/valleyview.c
+++ b/arch/x86/cpu/baytrail/valleyview.c
@@ -40,8 +40,6 @@ int arch_cpu_init(void)
int arch_misc_init(void)
{
- pirq_init();
-
- return 0;
+ return pirq_init();
}
#endif