609-rt2x00-make-wmac-loadable-via-OF-on-rt288x-305x-SoC.patch 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. From 04dbd87265f6ba4a373b211ba324b437d224fb2d Mon Sep 17 00:00:00 2001
  2. From: John Crispin <blogic@openwrt.org>
  3. Date: Sun, 17 Mar 2013 00:03:31 +0100
  4. Subject: [PATCH 21/38] rt2x00: make wmac loadable via OF on rt288x/305x SoC
  5. This patch ads the match table to allow loading the wmac support from a
  6. devicetree.
  7. Signed-off-by: John Crispin <blogic@openwrt.org>
  8. ---
  9. drivers/net/wireless/ralink/rt2x00/rt2800pci.c | 7 +++++++
  10. 1 file changed, 7 insertions(+)
  11. --- a/drivers/net/wireless/ralink/rt2x00/rt2800soc.c
  12. +++ b/drivers/net/wireless/ralink/rt2x00/rt2800soc.c
  13. @@ -225,10 +225,17 @@ static int rt2800soc_probe(struct platfo
  14. return rt2x00soc_probe(pdev, &rt2800soc_ops);
  15. }
  16. +static const struct of_device_id rt2880_wmac_match[] = {
  17. + { .compatible = "ralink,rt2880-wmac" },
  18. + {},
  19. +};
  20. +MODULE_DEVICE_TABLE(of, rt2880_wmac_match);
  21. +
  22. static struct platform_driver rt2800soc_driver = {
  23. .driver = {
  24. .name = "rt2800_wmac",
  25. .mod_name = KBUILD_MODNAME,
  26. + .of_match_table = rt2880_wmac_match,
  27. },
  28. .probe = rt2800soc_probe,
  29. .remove = rt2x00soc_remove,