X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=EmbeddedPkg%2FRealTimeClockRuntimeDxe%2FRealTimeClock.c;h=f1e067c0b59e31354f3ae59eaef629a187eec375;hp=b93626a6fbece31118d1fb3bb73afcc83a9794d4;hb=da6ae666410e5b0354312e51c3e63775f79c33af;hpb=2ef2b01e07c02db339f34004445734a2dbdd80e1 diff --git a/EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClock.c b/EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClock.c index b93626a6fb..f1e067c0b5 100644 --- a/EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClock.c +++ b/EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClock.c @@ -1,12 +1,12 @@ /** @file Implement EFI RealTimeClock runtime services via RTC Lib. - + Currently this driver does not support runtime virtual calling. - Copyright (c) 2008-2009, Apple Inc. All rights reserved. - - All rights reserved. This program and the accompanying materials + Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
+ + This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php @@ -16,7 +16,7 @@ **/ -#include +#include #include #include #include @@ -139,7 +139,10 @@ InitializeRealTimeClock ( { EFI_STATUS Status; - LibRtcInitialize (ImageHandle, SystemTable); + Status = LibRtcInitialize (ImageHandle, SystemTable); + if (EFI_ERROR (Status)) { + return Status; + } SystemTable->RuntimeServices->GetTime = GetTime; SystemTable->RuntimeServices->SetTime = SetTime;