mirror of
https://github.com/ipxe/ipxe
synced 2025-12-28 10:32:52 +03:00
[rng] Allow entropy_enable() to return an error
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -165,12 +165,15 @@ static void rtc_disable_int ( void ) {
|
||||
/**
|
||||
* Enable entropy gathering
|
||||
*
|
||||
* @ret rc Return status code
|
||||
*/
|
||||
static void rtc_entropy_enable ( void ) {
|
||||
static int rtc_entropy_enable ( void ) {
|
||||
|
||||
rtc_hook_isr();
|
||||
enable_irq ( RTC_IRQ );
|
||||
rtc_enable_int();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user