context_bus.c 547 B

1234567891011121314151617181920212223242526
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2021, NVIDIA Corporation.
  4. */
  5. #include <linux/device.h>
  6. #include <linux/of.h>
  7. struct bus_type host1x_context_device_bus_type = {
  8. .name = "host1x-context",
  9. };
  10. EXPORT_SYMBOL_GPL(host1x_context_device_bus_type);
  11. static int __init host1x_context_device_bus_init(void)
  12. {
  13. int err;
  14. err = bus_register(&host1x_context_device_bus_type);
  15. if (err < 0) {
  16. pr_err("bus type registration failed: %d\n", err);
  17. return err;
  18. }
  19. return 0;
  20. }
  21. postcore_initcall(host1x_context_device_bus_init);