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