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