diff options
| author | Liao Chen <[email protected]> | 2024-08-26 09:18:56 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-08-27 14:26:04 -0700 |
| commit | 2e25147a6560b684917d7f7142422c9901badfdd (patch) | |
| tree | abb0909bdd9949244507ff456597ed9df9730836 | |
| parent | d76867efebcb20752345e5a41d38bd456427b325 (diff) | |
net: dm9051: fix module autoloading
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.
Signed-off-by: Liao Chen <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
| -rw-r--r-- | drivers/net/ethernet/davicom/dm9051.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/davicom/dm9051.c b/drivers/net/ethernet/davicom/dm9051.c index bcfe52c11804..59ea48d4c9de 100644 --- a/drivers/net/ethernet/davicom/dm9051.c +++ b/drivers/net/ethernet/davicom/dm9051.c @@ -1235,6 +1235,7 @@ static const struct of_device_id dm9051_match_table[] = { { .compatible = "davicom,dm9051" }, {} }; +MODULE_DEVICE_TABLE(of, dm9051_match_table); static const struct spi_device_id dm9051_id_table[] = { { "dm9051", 0 }, |