Merge tag 'overflow-v5.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees...
[linux-2.6-microblaze.git] / drivers / cxl / bus.c
1 // SPDX-License-Identifier: GPL-2.0-only
2 /* Copyright(c) 2020 Intel Corporation. All rights reserved. */
3 #include <linux/device.h>
4 #include <linux/module.h>
5
6 /**
7  * DOC: cxl bus
8  *
9  * The CXL bus provides namespace for control devices and a rendezvous
10  * point for cross-device interleave coordination.
11  */
12 struct bus_type cxl_bus_type = {
13         .name = "cxl",
14 };
15 EXPORT_SYMBOL_GPL(cxl_bus_type);
16
17 static __init int cxl_bus_init(void)
18 {
19         return bus_register(&cxl_bus_type);
20 }
21
22 static void cxl_bus_exit(void)
23 {
24         bus_unregister(&cxl_bus_type);
25 }
26
27 module_init(cxl_bus_init);
28 module_exit(cxl_bus_exit);
29 MODULE_LICENSE("GPL v2");