Skip to contentSkip to conversation

perf: arm_cspmu: Add missing MODULE_DEVICE_TABLE

PATCH Applied Ilkka Koskinen 2 participants 2 messages Jun 15, 2023 – Jun 16, 2023 Arm PMU profiling and debugging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf: arm_cspmu: Add missing MODULE_DEVICE_TABLE

Add missing MODULE_DEVICE_TABLE definition to generate modalias, which enables module autoloading.

---
 drivers/perf/arm_cspmu/arm_cspmu.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/perf/arm_cspmu/arm_cspmu.c +7 -0
index 44a9f7e25fb2..e2b7827c4563 100644
@@ -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)
Signature · 7 lines
2.40.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
maintainer Applied
#1 lore raw
Quoted 4 lines · Ilkka Koskinen

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,

Signature · 5 lines
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev