coresight: cpu_debug: Define MODULE_DEVICE_TABLE
authorTingwei Zhang <tingwei@codeaurora.org>
Mon, 28 Sep 2020 16:34:50 +0000 (10:34 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Sep 2020 17:47:40 +0000 (19:47 +0200)
Define a MODULE_DEVICE_TABLE for cpu_debug so module can
be auto loaded on boot.

Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20200928163513.70169-3-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-cpu-debug.c

index 7e642fb3ed15cc1713b0dbb7ffcbc9e93ab84404..e1d232411d8d753b992eccdcc70014d5356751fa 100644 (file)
@@ -665,6 +665,8 @@ static const struct amba_id debug_ids[] = {
        {},
 };
 
+MODULE_DEVICE_TABLE(amba, debug_ids);
+
 static struct amba_driver debug_driver = {
        .drv = {
                .name   = "coresight-cpu-debug",