Commit 7e51d05e authored by Ilkka Koskinen's avatar Ilkka Koskinen Committed by Will Deacon

perf: arm_cspmu: Add missing MODULE_DEVICE_TABLE

Add missing MODULE_DEVICE_TABLE definition to generate modalias, which
enables module autoloading.
Signed-off-by: default avatarIlkka Koskinen <ilkka@os.amperecomputing.com>
Link: https://lore.kernel.org/r/20230615232630.304870-1-ilkka@os.amperecomputing.comSigned-off-by: default avatarWill Deacon <will@kernel.org>
parent a1c45d3e
...@@ -1213,6 +1213,12 @@ static int arm_cspmu_device_remove(struct platform_device *pdev) ...@@ -1213,6 +1213,12 @@ static int arm_cspmu_device_remove(struct platform_device *pdev)
return 0; 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 = { static struct platform_driver arm_cspmu_driver = {
.driver = { .driver = {
.name = DRVNAME, .name = DRVNAME,
...@@ -1220,6 +1226,7 @@ static struct platform_driver arm_cspmu_driver = { ...@@ -1220,6 +1226,7 @@ static struct platform_driver arm_cspmu_driver = {
}, },
.probe = arm_cspmu_device_probe, .probe = arm_cspmu_device_probe,
.remove = arm_cspmu_device_remove, .remove = arm_cspmu_device_remove,
.id_table = arm_cspmu_id,
}; };
static void arm_cspmu_set_active_cpu(int cpu, struct arm_cspmu *cspmu) static void arm_cspmu_set_active_cpu(int cpu, struct arm_cspmu *cspmu)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment