diff mbox series

[1/2] cpufreq: dt-platdev: Add MODULE_LICENSE

Message ID 20230524153417.2738448-1-zhipeng.wang_1@nxp.com (mailing list archive)
State New, archived
Delegated to: viresh kumar
Headers show
Series [1/2] cpufreq: dt-platdev: Add MODULE_LICENSE | expand

Commit Message

Zhipeng Wang May 24, 2023, 3:34 p.m. UTC
Add MODULE_LICENSE to support building as module.

Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com>
---
 drivers/cpufreq/cpufreq-dt-platdev.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Viresh Kumar May 24, 2023, 10:45 a.m. UTC | #1
On 24-05-23, 15:34, Zhipeng Wang wrote:
> Add MODULE_LICENSE to support building as module.
> 
> Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com>
> ---
>  drivers/cpufreq/cpufreq-dt-platdev.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c
> index 338cf6cc6596..54529aa16d53 100644
> --- a/drivers/cpufreq/cpufreq-dt-platdev.c
> +++ b/drivers/cpufreq/cpufreq-dt-platdev.c
> @@ -214,3 +214,4 @@ static int __init cpufreq_dt_platdev_init(void)
>  			       sizeof(struct cpufreq_dt_platform_data)));
>  }
>  core_initcall(cpufreq_dt_platdev_init);
> +MODULE_LICENSE("GPL");

Any specific reason why you need this as a module ? Just curious.
Zhipeng Wang May 24, 2023, 11:32 a.m. UTC | #2
I am working on enabling support for Google's Generic Kernel Image (GKI) project on our boards (mek_8qxp and 8qm). 
The cpufreq-dt driver already supports modularity, and the cpufreq-dt-platdev is also required. From my understanding, cpufreq-dt-platdev is not necessarily required to be built in, as it does not affect the basic boot process. Therefore, I would like to make it support building as a module.

BRs,
Zhipeng

> -----Original Message-----
> From: Viresh Kumar <viresh.kumar@linaro.org>
> Sent: 2023年5月24日 18:45
> To: Zhipeng Wang <zhipeng.wang_1@nxp.com>
> Cc: rafael@kernel.org; linux-pm@vger.kernel.org; linux-kernel@vger.kernel.org
> Subject: [EXT] Re: [PATCH 1/2] cpufreq: dt-platdev: Add MODULE_LICENSE
> 
> Caution: This is an external email. Please take care when clicking links or
> opening attachments. When in doubt, report the message using the 'Report
> this email' button
> 
> 
> On 24-05-23, 15:34, Zhipeng Wang wrote:
> > Add MODULE_LICENSE to support building as module.
> >
> > Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com>
> > ---
> >  drivers/cpufreq/cpufreq-dt-platdev.c | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c
> > b/drivers/cpufreq/cpufreq-dt-platdev.c
> > index 338cf6cc6596..54529aa16d53 100644
> > --- a/drivers/cpufreq/cpufreq-dt-platdev.c
> > +++ b/drivers/cpufreq/cpufreq-dt-platdev.c
> > @@ -214,3 +214,4 @@ static int __init cpufreq_dt_platdev_init(void)
> >                              sizeof(struct
> > cpufreq_dt_platform_data)));  }
> > core_initcall(cpufreq_dt_platdev_init);
> > +MODULE_LICENSE("GPL");
> 
> Any specific reason why you need this as a module ? Just curious.
> 
> --
> viresh
Viresh Kumar June 2, 2023, 4:12 a.m. UTC | #3
On 24-05-23, 15:34, Zhipeng Wang wrote:
> Add MODULE_LICENSE to support building as module.
> 
> Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com>
> ---
>  drivers/cpufreq/cpufreq-dt-platdev.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c
> index 338cf6cc6596..54529aa16d53 100644
> --- a/drivers/cpufreq/cpufreq-dt-platdev.c
> +++ b/drivers/cpufreq/cpufreq-dt-platdev.c
> @@ -214,3 +214,4 @@ static int __init cpufreq_dt_platdev_init(void)
>  			       sizeof(struct cpufreq_dt_platform_data)));
>  }
>  core_initcall(cpufreq_dt_platdev_init);
> +MODULE_LICENSE("GPL");

Merged both patches and applied. Thanks.
diff mbox series

Patch

diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c
index 338cf6cc6596..54529aa16d53 100644
--- a/drivers/cpufreq/cpufreq-dt-platdev.c
+++ b/drivers/cpufreq/cpufreq-dt-platdev.c
@@ -214,3 +214,4 @@  static int __init cpufreq_dt_platdev_init(void)
 			       sizeof(struct cpufreq_dt_platform_data)));
 }
 core_initcall(cpufreq_dt_platdev_init);
+MODULE_LICENSE("GPL");