1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2021, NVIDIA Corporation.
6 #include <linux/device.h>
9 struct bus_type host1x_context_device_bus_type = {
10 .name = "host1x-context",
12 EXPORT_SYMBOL_GPL(host1x_context_device_bus_type);
14 static int __init host1x_context_device_bus_init(void)
18 if (!of_machine_is_compatible("nvidia,tegra186") &&
19 !of_machine_is_compatible("nvidia,tegra194") &&
20 !of_machine_is_compatible("nvidia,tegra234"))
23 err = bus_register(&host1x_context_device_bus_type);
25 pr_err("bus type registration failed: %d\n", err);
31 postcore_initcall(host1x_context_device_bus_init);