[PATCH] rust: rcpufreq_dt: add module alias

Frank Zhang posted 1 patch 3 weeks ago
[PATCH] rust: rcpufreq_dt: add module alias
Posted by Frank Zhang 3 weeks ago
Add the missing `platform:cpufreq-dt` module alias so that the driver
can be automatically loaded when the platform device is registered.

Fixes: 06149d8f2216 ("cpufreq: Add Rust-based cpufreq-dt driver")
Cc: stable@vger.kernel.org
Signed-off-by: Frank Zhang <rmxpzlb@gmail.com>

diff --git a/drivers/cpufreq/rcpufreq_dt.rs b/drivers/cpufreq/rcpufreq_dt.rs
index 10106fa13095..32a508d82f68 100644
--- a/drivers/cpufreq/rcpufreq_dt.rs
+++ b/drivers/cpufreq/rcpufreq_dt.rs
@@ -219,4 +219,5 @@ fn probe<'bound>(
     authors: ["Viresh Kumar <viresh.kumar@linaro.org>"],
     description: "Generic CPUFreq DT driver",
     license: "GPL v2",
+    alias: ["platform:cpufreq-dt"],
 }
-- 
2.55.0
Re: [PATCH] rust: rcpufreq_dt: add module alias
Posted by Viresh Kumar 3 weeks ago
On 04-09-26, 15:56, Frank Zhang wrote:
> Add the missing `platform:cpufreq-dt` module alias so that the driver
> can be automatically loaded when the platform device is registered.
> 
> Fixes: 06149d8f2216 ("cpufreq: Add Rust-based cpufreq-dt driver")
> Cc: stable@vger.kernel.org
> Signed-off-by: Frank Zhang <rmxpzlb@gmail.com>
> 
> diff --git a/drivers/cpufreq/rcpufreq_dt.rs b/drivers/cpufreq/rcpufreq_dt.rs
> index 10106fa13095..32a508d82f68 100644
> --- a/drivers/cpufreq/rcpufreq_dt.rs
> +++ b/drivers/cpufreq/rcpufreq_dt.rs
> @@ -219,4 +219,5 @@ fn probe<'bound>(
>      authors: ["Viresh Kumar <viresh.kumar@linaro.org>"],
>      description: "Generic CPUFreq DT driver",
>      license: "GPL v2",
> +    alias: ["platform:cpufreq-dt"],
>  }

Applied. Thanks.

-- 
viresh