Re: [PATCH v8 09/13] clk: hisilicon: hi3620: Convert into platform driver module

From: Stephen Boyd
Date: Thu Apr 11 2024 - 03:15:32 EST


Quoting David Yang (2024-04-11 00:04:54)
> Use common helper functions and register clks with a single of_device_id
> data.
>
> Signed-off-by: David Yang <mmyangfl@xxxxxxxxx>
> ---
> drivers/clk/hisilicon/clk-hi3620.c | 191 +++++++++++++++--------------
> 1 file changed, 96 insertions(+), 95 deletions(-)
>
> diff --git a/drivers/clk/hisilicon/clk-hi3620.c b/drivers/clk/hisilicon/clk-hi3620.c
> index 5d0226530fdb..8832cdd6bd57 100644
> --- a/drivers/clk/hisilicon/clk-hi3620.c
> +++ b/drivers/clk/hisilicon/clk-hi3620.c
> @@ -12,6 +12,7 @@
> #include <linux/kernel.h>
> #include <linux/clk-provider.h>
> #include <linux/io.h>
> +#include <linux/module.h>
> #include <linux/of.h>
> #include <linux/of_address.h>
> #include <linux/slab.h>

You need to include linux/platform_device.h if you're making it into a
platform driver.