diff mbox series

perf/amlogic: add missing MODULE_DEVICE_TABLE

Message ID 20231012103543.3381326-1-m.szyprowski@samsung.com (mailing list archive)
State New, archived
Headers show
Series perf/amlogic: add missing MODULE_DEVICE_TABLE | expand

Commit Message

Marek Szyprowski Oct. 12, 2023, 10:35 a.m. UTC
Add missing MODULE_DEVICE_TABLE macro to let this driver to be
automatically loaded as module.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
---
 drivers/perf/amlogic/meson_g12_ddr_pmu.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Neil Armstrong Oct. 12, 2023, 11:55 a.m. UTC | #1
On 12/10/2023 12:35, Marek Szyprowski wrote:
> Add missing MODULE_DEVICE_TABLE macro to let this driver to be
> automatically loaded as module.
> 
> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
> ---
>   drivers/perf/amlogic/meson_g12_ddr_pmu.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/perf/amlogic/meson_g12_ddr_pmu.c b/drivers/perf/amlogic/meson_g12_ddr_pmu.c
> index 8b643888d503..15d52ab3276a 100644
> --- a/drivers/perf/amlogic/meson_g12_ddr_pmu.c
> +++ b/drivers/perf/amlogic/meson_g12_ddr_pmu.c
> @@ -377,6 +377,7 @@ static const struct of_device_id meson_ddr_pmu_dt_match[] = {
>   	},
>   	{}
>   };
> +MODULE_DEVICE_TABLE(of, meson_ddr_pmu_dt_match);
>   
>   static struct platform_driver g12_ddr_pmu_driver = {
>   	.probe = g12_ddr_pmu_probe,

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Will Deacon Oct. 17, 2023, 1:10 p.m. UTC | #2
On Thu, 12 Oct 2023 12:35:43 +0200, Marek Szyprowski wrote:
> Add missing MODULE_DEVICE_TABLE macro to let this driver to be
> automatically loaded as module.
> 
> 

Applied to will (for-next/perf), thanks!

[1/1] perf/amlogic: add missing MODULE_DEVICE_TABLE
      https://git.kernel.org/will/c/32269e09b137

Cheers,
diff mbox series

Patch

diff --git a/drivers/perf/amlogic/meson_g12_ddr_pmu.c b/drivers/perf/amlogic/meson_g12_ddr_pmu.c
index 8b643888d503..15d52ab3276a 100644
--- a/drivers/perf/amlogic/meson_g12_ddr_pmu.c
+++ b/drivers/perf/amlogic/meson_g12_ddr_pmu.c
@@ -377,6 +377,7 @@  static const struct of_device_id meson_ddr_pmu_dt_match[] = {
 	},
 	{}
 };
+MODULE_DEVICE_TABLE(of, meson_ddr_pmu_dt_match);
 
 static struct platform_driver g12_ddr_pmu_driver = {
 	.probe = g12_ddr_pmu_probe,