Use new provider registration function name.

This commit is contained in:
Andrew Johnson
2009-07-06 20:17:29 +00:00
parent 54928bf94f
commit eb800fd351
2 changed files with 2 additions and 2 deletions

View File

@@ -90,7 +90,7 @@ static void ClockTime_InitOnce(void *psync)
iocshRegister(&ShutdownFuncDef, ShutdownCallFunc);
/* Finally register as a time provider */
generalTimeCurrentTpRegister("OS Clock", LAST_RESORT_PRIORITY,
generalTimeRegisterCurrentProvider("OS Clock", LAST_RESORT_PRIORITY,
ClockTimeGetCurrent);
}

View File

@@ -117,7 +117,7 @@ static void NTPTime_InitOnce(void *pprio)
iocshRegister(&ShutdownFuncDef, ShutdownCallFunc);
/* Finally register as a time provider */
generalTimeCurrentTpRegister("NTP", *(int *)pprio, NTPTimeGetCurrent);
generalTimeRegisterCurrentProvider("NTP", *(int *)pprio, NTPTimeGetCurrent);
}
void NTPTime_Init(int priority)