Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/efidev/efirtc.c
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | efirtc_probe(device_t dev) | ||||
/* | /* | ||||
* Check whether we can read the time. This will stop us from attaching | * Check whether we can read the time. This will stop us from attaching | ||||
* when there is EFI Runtime support but the gettime function is | * when there is EFI Runtime support but the gettime function is | ||||
* unimplemented, e.g. on some builds of U-Boot. | * unimplemented, e.g. on some builds of U-Boot. | ||||
*/ | */ | ||||
if ((error = efi_get_time(&tm)) != 0) { | if ((error = efi_get_time(&tm)) != 0) { | ||||
if (bootverbose) | if (bootverbose) | ||||
device_printf(dev, "cannot read EFI realtime clock\n"); | device_printf(dev, "cannot read EFI realtime clock, " | ||||
"error %d\n", error); | |||||
return (error); | return (error); | ||||
} | } | ||||
device_set_desc(dev, "EFI Realtime Clock"); | device_set_desc(dev, "EFI Realtime Clock"); | ||||
return (BUS_PROBE_DEFAULT); | return (BUS_PROBE_DEFAULT); | ||||
} | } | ||||
static int | static int | ||||
efirtc_attach(device_t dev) | efirtc_attach(device_t dev) | ||||
▲ Show 20 Lines • Show All 121 Lines • Show Last 20 Lines |