[rng] Allow entropy_enable() to return an error

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2012-03-18 16:45:04 +00:00
parent 66f200bdac
commit 196f0bb081
5 changed files with 12 additions and 5 deletions

View File

@@ -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;
}
/**