diff options
author | Qinglang Miao <miaoqinglang@huawei.com> | 2021-03-25 17:19:54 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-25 17:11:22 -0700 |
commit | 866f1577ba69bde2b9f36c300f603596c7d84a62 (patch) | |
tree | 5bbe31c366a58b7fe179cd31316a3d8f97bd05de | |
parent | 7d644b0c3a5009a1a1b998c8039933bbe8e40ed3 (diff) | |
download | linux-866f1577ba69bde2b9f36c300f603596c7d84a62.tar.bz2 |
net: dsa: b53: spi: 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.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/dsa/b53/b53_spi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/b53/b53_spi.c b/drivers/net/dsa/b53/b53_spi.c index 413158275db8..ecb9f7f6b335 100644 --- a/drivers/net/dsa/b53/b53_spi.c +++ b/drivers/net/dsa/b53/b53_spi.c @@ -335,6 +335,7 @@ static const struct of_device_id b53_spi_of_match[] = { { .compatible = "brcm,bcm53128" }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, b53_spi_of_match); static struct spi_driver b53_spi_driver = { .driver = { |