diff options
author | Simon Glass <sjg@chromium.org> | 2015-08-10 13:05:08 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-08-14 09:24:21 (GMT) |
commit | 7e4be120e88974d49ebb4bcf837134cfb71efc8c (patch) | |
tree | 0f51a3f0d1447962b9b0f8cb5a9c6c3b5604e40f /arch/x86/include | |
parent | 412400abaaa6ef02adff35419188689ea6d3ec7e (diff) | |
download | u-boot-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/include')
-rw-r--r-- | arch/x86/include/asm/irq.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/include/asm/irq.h b/arch/x86/include/asm/irq.h index 4de5512..6697da3 100644 --- a/arch/x86/include/asm/irq.h +++ b/arch/x86/include/asm/irq.h @@ -70,7 +70,9 @@ void cpu_irq_init(void); * * This initializes the PIRQ routing on the platform and configures all PCI * devices' interrupt line register to a working IRQ number on the 8259 PIC. + * + * @return 0 if OK, -ve on error */ -void pirq_init(void); +int pirq_init(void); #endif /* _ARCH_IRQ_H_ */ |