Skip to content

Commit 0a37f32

Browse files
Bixuan Cuisuryasaimadhu
authored andcommitted
EDAC/ti: Add missing MODULE_DEVICE_TABLE
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 <[email protected]> Signed-off-by: Bixuan Cui <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Cc: Tero Kristo <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 89f5f8f commit 0a37f32

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/edac/ti_edac.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ static const struct of_device_id ti_edac_of_match[] = {
197197
{ .compatible = "ti,emif-dra7xx", .data = (void *)EMIF_TYPE_DRA7 },
198198
{},
199199
};
200+
MODULE_DEVICE_TABLE(of, ti_edac_of_match);
200201

201202
static int _emif_get_id(struct device_node *node)
202203
{

0 commit comments

Comments
 (0)