diff options
Diffstat (limited to 'drivers/mfd/stm32-timers.c')
-rw-r--r-- | drivers/mfd/stm32-timers.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/mfd/stm32-timers.c b/drivers/mfd/stm32-timers.c index c53a25687e..3b47800105 100644 --- a/drivers/mfd/stm32-timers.c +++ b/drivers/mfd/stm32-timers.c @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) STMicroelectronics 2016 * Author: Benjamin Gaignard <benjamin.gaignard@st.com> @@ -11,6 +11,7 @@ #include <io.h> #include <linux/bitfield.h> #include <linux/mfd/stm32-timers.h> +#include <linux/regmap.h> #include <of.h> #include <linux/reset.h> @@ -34,7 +35,7 @@ static void stm32_timers_get_arr_size(struct stm32_timers *ddata) regmap_write(ddata->regmap, TIM_ARR, 0x0); } -static int stm32_timers_probe(struct device_d *dev) +static int stm32_timers_probe(struct device *dev) { struct stm32_timers *ddata; struct resource *res; @@ -58,15 +59,16 @@ static int stm32_timers_probe(struct device_d *dev) dev->priv = ddata; - return of_platform_populate(dev->device_node, NULL, dev); + return of_platform_populate(dev->of_node, NULL, dev); } static const struct of_device_id stm32_timers_of_match[] = { { .compatible = "st,stm32-timers", }, { /* sentinel */ }, }; +MODULE_DEVICE_TABLE(of, stm32_timers_of_match); -static struct driver_d stm32_timers_driver = { +static struct driver stm32_timers_driver = { .name = "stm32-timers", .probe = stm32_timers_probe, .of_compatible = stm32_timers_of_match, |