diff options
Diffstat (limited to 'drivers/clocksource/efi.c')
-rw-r--r-- | drivers/clocksource/efi.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/clocksource/efi.c b/drivers/clocksource/efi.c index 658d146fb5..1ac587a715 100644 --- a/drivers/clocksource/efi.c +++ b/drivers/clocksource/efi.c @@ -1,26 +1,25 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2017 Jean-Christophe PLAGNIOL-VILLARD <plagnio@jcrosoft.com> - * - * Under GPL v2 */ #include <common.h> #include <init.h> #include <driver.h> #include <clock.h> #include <efi.h> -#include <efi/efi.h> +#include <efi/efi-payload.h> #include <efi/efi-device.h> #include <linux/err.h> static uint64_t ticks = 1; -static void *efi_cs_evt; +static struct efi_event *efi_cs_evt; static uint64_t efi_cs_read(void) { return ticks; } -static void efi_cs_inc(void *event, void *ctx) +static void efi_cs_inc(struct efi_event *event, void *ctx) { ticks++; } @@ -94,14 +93,15 @@ static struct clocksource efi_cs = { .mask = CLOCKSOURCE_MASK(64), .shift = 0, .init = efi_cs_init, + .priority = 80, }; -static int efi_cs_probe(struct device_d *dev) +static int efi_cs_probe(struct device *dev) { return init_clock(&efi_cs); } -static struct driver_d efi_cs_driver = { +static struct driver efi_cs_driver = { .name = "efi-cs", .probe = efi_cs_probe, }; |