EDAC/ti: Add missing MODULE_DEVICE_TABLE
authorBixuan Cui <cuibixuan@huawei.com>
Wed, 12 May 2021 03:37:27 +0000 (11:37 +0800)
committerBorislav Petkov <bp@suse.de>
Fri, 14 May 2021 09:54:53 +0000 (11:54 +0200)
The module misses MODULE_DEVICE_TABLE() for of_device_id tables and thus
never autoloads on ID matches.

Add the missing declaration.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Tero Kristo <kristo@kernel.org>
Link: https://lkml.kernel.org/r/20210512033727.26701-1-cuibixuan@huawei.com
drivers/edac/ti_edac.c

index e7eae20f83d1d03875bb3ef30b3d7eae2c201272..169f96e51c2933722e4cb457b0101f1cf9d197e2 100644 (file)
@@ -197,6 +197,7 @@ static const struct of_device_id ti_edac_of_match[] = {
        { .compatible = "ti,emif-dra7xx", .data = (void *)EMIF_TYPE_DRA7 },
        {},
 };
+MODULE_DEVICE_TABLE(of, ti_edac_of_match);
 
 static int _emif_get_id(struct device_node *node)
 {