Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / drivers / gpu / host1x / context_bus.c
blob7cd0e1a5edd1b50858739f1bfaab7965110a1deb
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * Copyright (c) 2021, NVIDIA Corporation.
4 */
6 #include <linux/device.h>
7 #include <linux/of.h>
9 const 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)
16 int err;
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;
24 return 0;
26 postcore_initcall(host1x_context_device_bus_init);