ahb.c 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * Copyright (c) 2016 Qualcomm Atheros, Inc. All rights reserved.
  3. * Copyright (c) 2015 The Linux Foundation. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for any
  6. * purpose with or without fee is hereby granted, provided that the above
  7. * copyright notice and this permission notice appear in all copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  10. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  12. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  13. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  14. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  15. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16. */
  17. #include <linux/module.h>
  18. #include "core.h"
  19. #include "debug.h"
  20. #include "ahb.h"
  21. static const struct of_device_id ath10k_ahb_of_match[] = {
  22. /* TODO: enable this entry once everything in place.
  23. * { .compatible = "qcom,ipq4019-wifi",
  24. * .data = (void *)ATH10K_HW_QCA4019 },
  25. */
  26. { }
  27. };
  28. MODULE_DEVICE_TABLE(of, ath10k_ahb_of_match);
  29. static int ath10k_ahb_probe(struct platform_device *pdev)
  30. {
  31. return 0;
  32. }
  33. static int ath10k_ahb_remove(struct platform_device *pdev)
  34. {
  35. return 0;
  36. }
  37. static struct platform_driver ath10k_ahb_driver = {
  38. .driver = {
  39. .name = "ath10k_ahb",
  40. .of_match_table = ath10k_ahb_of_match,
  41. },
  42. .probe = ath10k_ahb_probe,
  43. .remove = ath10k_ahb_remove,
  44. };
  45. int ath10k_ahb_init(void)
  46. {
  47. int ret;
  48. printk(KERN_ERR "AHB support is still work in progress\n");
  49. ret = platform_driver_register(&ath10k_ahb_driver);
  50. if (ret)
  51. printk(KERN_ERR "failed to register ath10k ahb driver: %d\n",
  52. ret);
  53. return ret;
  54. }
  55. void ath10k_ahb_exit(void)
  56. {
  57. platform_driver_unregister(&ath10k_ahb_driver);
  58. }