mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
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>
This commit is contained in:
parent
412400abaa
commit
7e4be120e8
6 changed files with 18 additions and 19 deletions
|
@ -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_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue