Skip to content

Commit

Permalink
net: dsa: b53: spi: add missing MODULE_DEVICE_TABLE
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Qinglang Miao authored and David S. Miller committed Mar 26, 2021
1 parent 7d644b0 commit 866f157
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/dsa/b53/b53_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 866f157

Please sign in to comment.