Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * Copyright (c) 2021, NVIDIA Corporation.
0004  */
0005 
0006 #include <linux/device.h>
0007 #include <linux/of.h>
0008 
0009 struct bus_type host1x_context_device_bus_type = {
0010     .name = "host1x-context",
0011 };
0012 EXPORT_SYMBOL_GPL(host1x_context_device_bus_type);
0013 
0014 static int __init host1x_context_device_bus_init(void)
0015 {
0016     int err;
0017 
0018     err = bus_register(&host1x_context_device_bus_type);
0019     if (err < 0) {
0020         pr_err("bus type registration failed: %d\n", err);
0021         return err;
0022     }
0023 
0024     return 0;
0025 }
0026 postcore_initcall(host1x_context_device_bus_init);