Skip to content

Commit

Permalink
perf: arm_cspmu: Add missing MODULE_DEVICE_TABLE
Browse files Browse the repository at this point in the history
Add missing MODULE_DEVICE_TABLE definition to generate modalias, which
enables module autoloading.

Signed-off-by: Ilkka Koskinen <ilkka@os.amperecomputing.com>
Link: https://lore.kernel.org/r/20230615232630.304870-1-ilkka@os.amperecomputing.com
Signed-off-by: Will Deacon <will@kernel.org>
  • Loading branch information
Ilkka Koskinen authored and Will Deacon committed Jun 16, 2023
1 parent a1c45d3 commit 7e51d05
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/perf/arm_cspmu/arm_cspmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1213,13 +1213,20 @@ 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,
.suppress_bind_attrs = true,
},
.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)
Expand Down

0 comments on commit 7e51d05

Please sign in to comment.