machine_615x_init.c 939 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 and
  6. * only version 2 as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. */
  14. #include <linux/kernel.h>
  15. #include <linux/module.h>
  16. #include "machine_615x_init.h"
  17. static int __init audio_machine_615x_init(void)
  18. {
  19. sm6150_init();
  20. sa6155_init();
  21. return 0;
  22. }
  23. static void audio_machine_615x_exit(void)
  24. {
  25. sm6150_exit();
  26. sa6155_exit();
  27. }
  28. module_init(audio_machine_615x_init);
  29. module_exit(audio_machine_615x_exit);
  30. MODULE_DESCRIPTION("Audio Machine 615X Driver");
  31. MODULE_LICENSE("GPL v2");