diff mbox series

[1/2] perf: arm_spe: Enable automatic DT loading

Message ID 20181012192409.3819792-1-jeremy.linton@arm.com
State Accepted
Commit 472dc9fa7cc0769321d91b55eed4e21e2ab86632
Headers show
Series [1/2] perf: arm_spe: Enable automatic DT loading | expand

Commit Message

Jeremy Linton Oct. 12, 2018, 7:24 p.m. UTC
When built as a module, the spe driver isn't automatically
loaded on DT systems. Add the MODULE_DEVICE_TABLE entry.

Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>

---
 drivers/perf/arm_spe_pmu.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.14.3

Comments

Sudeep Holla Oct. 17, 2018, 3:23 p.m. UTC | #1
Looks like my previous response for this patch didn't make to the list.

On 12/10/18 20:24, Jeremy Linton wrote:
> When built as a module, the spe driver isn't automatically

> loaded on DT systems. Add the MODULE_DEVICE_TABLE entry.

> 


FWIW,

Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>


-- 
Regards,
Sudeep
diff mbox series

Patch

diff --git a/drivers/perf/arm_spe_pmu.c b/drivers/perf/arm_spe_pmu.c
index 54ec278d2fc4..18d61077b157 100644
--- a/drivers/perf/arm_spe_pmu.c
+++ b/drivers/perf/arm_spe_pmu.c
@@ -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)
 {