Skip to content

Commit 7e51d05

Browse files
ilkka-koskinenwilldeacon
authored andcommitted
perf: arm_cspmu: Add missing MODULE_DEVICE_TABLE
Add missing MODULE_DEVICE_TABLE definition to generate modalias, which enables module autoloading. Signed-off-by: Ilkka Koskinen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent a1c45d3 commit 7e51d05

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/perf/arm_cspmu/arm_cspmu.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,13 +1213,20 @@ static int arm_cspmu_device_remove(struct platform_device *pdev)
12131213
return 0;
12141214
}
12151215

1216+
static const struct platform_device_id arm_cspmu_id[] = {
1217+
{DRVNAME, 0},
1218+
{ },
1219+
};
1220+
MODULE_DEVICE_TABLE(platform, arm_cspmu_id);
1221+
12161222
static struct platform_driver arm_cspmu_driver = {
12171223
.driver = {
12181224
.name = DRVNAME,
12191225
.suppress_bind_attrs = true,
12201226
},
12211227
.probe = arm_cspmu_device_probe,
12221228
.remove = arm_cspmu_device_remove,
1229+
.id_table = arm_cspmu_id,
12231230
};
12241231

12251232
static void arm_cspmu_set_active_cpu(int cpu, struct arm_cspmu *cspmu)

0 commit comments

Comments
 (0)