740-v5.13-0007-net-dsa-b53-spi-add-missing-MODULE_DEVICE_TABLE.patch 967 B

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