[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220922070438.586692-1-yangyingliang@huawei.com>
Date: Thu, 22 Sep 2022 15:04:38 +0800
From: Yang Yingliang <yangyingliang@...wei.com>
To: <netdev@...r.kernel.org>
CC: <lennart@...omain.com>, <alexandru.tachici@...log.com>,
<pabeni@...hat.com>, <davem@...emloft.net>
Subject: [PATCH -next] 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: bc93e19d088b ("net: ethernet: adi: Add ADIN1110 support")
Signed-off-by: Yang Yingliang <yangyingliang@...wei.com>
---
drivers/net/ethernet/adi/adin1110.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/adi/adin1110.c b/drivers/net/ethernet/adi/adin1110.c
index 4f3c372292f3..2c2ac64c2d39 100644
--- a/drivers/net/ethernet/adi/adin1110.c
+++ b/drivers/net/ethernet/adi/adin1110.c
@@ -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 = {
--
2.25.1
Powered by blists - more mailing lists