* [PATCH] perf: arm_cspmu: Add missing MODULE_DEVICE_TABLE
@ 2023-06-15 23:26 Ilkka Koskinen
2023-06-16 11:23 ` Will Deacon
0 siblings, 1 reply; 2+ messages in thread
From: Ilkka Koskinen @ 2023-06-15 23:26 UTC (permalink / raw)
To: Will Deacon, Robin Murphy, Besar Wicaksono, Suzuki K Poulose,
Mark Rutland
Cc: Ilkka Koskinen, linux-arm-kernel, linux-kernel
Add missing MODULE_DEVICE_TABLE definition to generate modalias, which
enables module autoloading.
Signed-off-by: Ilkka Koskinen <ilkka@os.amperecomputing.com>
---
drivers/perf/arm_cspmu/arm_cspmu.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/perf/arm_cspmu/arm_cspmu.c b/drivers/perf/arm_cspmu/arm_cspmu.c
index 44a9f7e25fb2..e2b7827c4563 100644
--- a/drivers/perf/arm_cspmu/arm_cspmu.c
+++ b/drivers/perf/arm_cspmu/arm_cspmu.c
@@ -1213,6 +1213,12 @@ static int arm_cspmu_device_remove(struct platform_device *pdev)
return 0;
}
+static const struct platform_device_id arm_cspmu_id[] = {
+ {DRVNAME, 0},
+ { },
+};
+MODULE_DEVICE_TABLE(platform, arm_cspmu_id);
+
static struct platform_driver arm_cspmu_driver = {
.driver = {
.name = DRVNAME,
@@ -1220,6 +1226,7 @@ static struct platform_driver arm_cspmu_driver = {
},
.probe = arm_cspmu_device_probe,
.remove = arm_cspmu_device_remove,
+ .id_table = arm_cspmu_id,
};
static void arm_cspmu_set_active_cpu(int cpu, struct arm_cspmu *cspmu)
--
2.40.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] perf: arm_cspmu: Add missing MODULE_DEVICE_TABLE
2023-06-15 23:26 [PATCH] perf: arm_cspmu: Add missing MODULE_DEVICE_TABLE Ilkka Koskinen
@ 2023-06-16 11:23 ` Will Deacon
0 siblings, 0 replies; 2+ messages in thread
From: Will Deacon @ 2023-06-16 11:23 UTC (permalink / raw)
To: Mark Rutland, Robin Murphy, Suzuki K Poulose, Besar Wicaksono,
Ilkka Koskinen
Cc: catalin.marinas, kernel-team, Will Deacon, linux-arm-kernel,
linux-kernel
On Thu, 15 Jun 2023 16:26:30 -0700, Ilkka Koskinen wrote:
> Add missing MODULE_DEVICE_TABLE definition to generate modalias, which
> enables module autoloading.
>
>
Applied to will (for-next/perf), thanks!
[1/1] perf: arm_cspmu: Add missing MODULE_DEVICE_TABLE
https://git.kernel.org/will/c/7e51d05e43f1
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-06-16 11:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-15 23:26 [PATCH] perf: arm_cspmu: Add missing MODULE_DEVICE_TABLE Ilkka Koskinen
2023-06-16 11:23 ` Will Deacon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®