]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: ethernet: adin1110: Add missing MODULE_DEVICE_TABLE
authorYang Yingliang <yangyingliang@huawei.com>
Thu, 22 Sep 2022 07:04:38 +0000 (15:04 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 26 Sep 2022 19:48:12 +0000 (12:48 -0700)
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: 40a42b62cfa9 ("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>
drivers/net/ethernet/adi/adin1110.c

index 2de0ba95fb2ccce41cc7d781292611d0b31e9759..aaee7c4248e6e6ca470939360cfe3df07d007ef1 100644 (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 = {