OSDN Git Service

perf: arm_spe: Enable automatic DT loading
authorJeremy Linton <jeremy.linton@arm.com>
Fri, 12 Oct 2018 19:24:09 +0000 (14:24 -0500)
committerWill Deacon <will.deacon@arm.com>
Wed, 21 Nov 2018 13:16:34 +0000 (13:16 +0000)
When built as a module, the spe driver isn't automatically
loaded on DT systems. Add the MODULE_DEVICE_TABLE entry.

Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/arm_spe_pmu.c

index 54ec278..18d6107 100644 (file)
@@ -1169,6 +1169,7 @@ static const struct of_device_id arm_spe_pmu_of_match[] = {
        { .compatible = "arm,statistical-profiling-extension-v1", .data = (void *)1 },
        { /* Sentinel */ },
 };
+MODULE_DEVICE_TABLE(of, arm_spe_pmu_of_match);
 
 static int arm_spe_pmu_device_dt_probe(struct platform_device *pdev)
 {