wil_platform.c 822 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // SPDX-License-Identifier: ISC
  2. /*
  3. * Copyright (c) 2014-2016 Qualcomm Atheros, Inc.
  4. */
  5. #include <linux/device.h>
  6. #include "wil_platform.h"
  7. int __init wil_platform_modinit(void)
  8. {
  9. return 0;
  10. }
  11. void wil_platform_modexit(void)
  12. {
  13. }
  14. /* wil_platform_init() - wil6210 platform module init
  15. *
  16. * The function must be called before all other functions in this module.
  17. * It returns a handle which is used with the rest of the API
  18. *
  19. */
  20. void *wil_platform_init(struct device *dev, struct wil_platform_ops *ops,
  21. const struct wil_platform_rops *rops, void *wil_handle)
  22. {
  23. void *handle = ops; /* to return some non-NULL for 'void' impl. */
  24. if (!ops) {
  25. dev_err(dev,
  26. "Invalid parameter. Cannot init platform module\n");
  27. return NULL;
  28. }
  29. /* platform specific init functions should be called here */
  30. return handle;
  31. }