diff options
Diffstat (limited to 'drivers/watchdog/at91sam9_wdt.c')
-rw-r--r-- | drivers/watchdog/at91sam9_wdt.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/watchdog/at91sam9_wdt.c b/drivers/watchdog/at91sam9_wdt.c index fe6f2e0408..46bb986229 100644 --- a/drivers/watchdog/at91sam9_wdt.c +++ b/drivers/watchdog/at91sam9_wdt.c @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2019 Pengutronix, Ahmad Fatoum <a.fatoum@pengutronix.de> */ @@ -8,7 +8,7 @@ #include <io.h> #include <watchdog.h> #include <linux/clk.h> -#include <mach/at91_wdt.h> +#include <mach/at91/at91_wdt.h> #define MIN_WDT_TIMEOUT 1 #define MAX_WDT_TIMEOUT 16 @@ -54,7 +54,7 @@ static inline bool at91sam9x_wdt_is_disabled(struct at91sam9x_wdt *wdt) return readl(wdt->base + AT91_WDT_MR) & AT91_WDT_WDDIS; } -static int at91sam9x_wdt_probe(struct device_d *dev) +static int at91sam9x_wdt_probe(struct device *dev) { struct at91sam9x_wdt *wdt; struct resource *iores; @@ -95,8 +95,9 @@ static const __maybe_unused struct of_device_id at91sam9x_wdt_dt_ids[] = { { .compatible = "atmel,sama5d4-wdt", }, { /* sentinel */ }, }; +MODULE_DEVICE_TABLE(of, at91sam9x_wdt_dt_ids); -static struct driver_d at91sam9x_wdt_driver = { +static struct driver at91sam9x_wdt_driver = { .name = "at91sam9x-wdt", .of_compatible = DRV_OF_COMPAT(at91sam9x_wdt_dt_ids), .probe = at91sam9x_wdt_probe, |