imx93-src.c 743 B

123456789101112131415161718192021222324252627282930313233
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright 2022 NXP
  4. */
  5. #include <linux/module.h>
  6. #include <linux/of_platform.h>
  7. #include <linux/platform_device.h>
  8. static int imx93_src_probe(struct platform_device *pdev)
  9. {
  10. return devm_of_platform_populate(&pdev->dev);
  11. }
  12. static const struct of_device_id imx93_src_ids[] = {
  13. { .compatible = "fsl,imx93-src" },
  14. { }
  15. };
  16. MODULE_DEVICE_TABLE(of, imx93_src_ids);
  17. static struct platform_driver imx93_src_driver = {
  18. .driver = {
  19. .name = "imx93_src",
  20. .owner = THIS_MODULE,
  21. .of_match_table = imx93_src_ids,
  22. },
  23. .probe = imx93_src_probe,
  24. };
  25. module_platform_driver(imx93_src_driver);
  26. MODULE_AUTHOR("Peng Fan <[email protected]>");
  27. MODULE_DESCRIPTION("NXP i.MX93 src driver");
  28. MODULE_LICENSE("GPL");