net: ethernet: adin1110: Add missing MODULE_DEVICE_TABLE

This patch adds missing MODULE_DEVICE_TABLE definition which generates
correct modalias for automatic loading of this driver when it is built
as an external module.

Fixes: bc93e19d08 ("net: ethernet: adi: Add ADIN1110 support")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220922070438.586692-1-yangyingliang@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Yang Yingliang 2022-09-22 15:04:38 +08:00 committed by Jakub Kicinski
parent 1bba1998bf
commit bb65131bb6
1 changed files with 1 additions and 0 deletions

View File

@ -1680,6 +1680,7 @@ static const struct spi_device_id adin1110_spi_id[] = {
{ .name = "adin2111", .driver_data = ADIN2111_MAC },
{ }
};
MODULE_DEVICE_TABLE(spi, adin1110_spi_id);
static struct spi_driver adin1110_driver = {
.driver = {