1 From 866f1577ba69bde2b9f36c300f603596c7d84a62 Mon Sep 17 00:00:00 2001
2 From: Qinglang Miao <miaoqinglang@huawei.com>
3 Date: Thu, 25 Mar 2021 17:19:54 +0800
4 Subject: [PATCH] net: dsa: b53: spi: add missing MODULE_DEVICE_TABLE
6 This patch adds missing MODULE_DEVICE_TABLE definition which generates
7 correct modalias for automatic loading of this driver when it is built
10 Reported-by: Hulk Robot <hulkci@huawei.com>
11 Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
12 Acked-by: Florian Fainelli <f.fainelli@gmail.com>
13 Signed-off-by: David S. Miller <davem@davemloft.net>
15 drivers/net/dsa/b53/b53_spi.c | 1 +
16 1 file changed, 1 insertion(+)
18 --- a/drivers/net/dsa/b53/b53_spi.c
19 +++ b/drivers/net/dsa/b53/b53_spi.c
20 @@ -335,6 +335,7 @@ static const struct of_device_id b53_spi
21 { .compatible = "brcm,bcm53128" },
24 +MODULE_DEVICE_TABLE(of, b53_spi_of_match);
26 static struct spi_driver b53_spi_driver = {