aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cxl/bus.c
blob: 58f74796d525b21050c3f2f56eda8a5410495d17 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright(c) 2020 Intel Corporation. All rights reserved. */
#include <linux/device.h>
#include <linux/module.h>

/**
 * DOC: cxl bus
 *
 * The CXL bus provides namespace for control devices and a rendezvous
 * point for cross-device interleave coordination.
 */
struct bus_type cxl_bus_type = {
	.name = "cxl",
};
EXPORT_SYMBOL_GPL(cxl_bus_type);

static __init int cxl_bus_init(void)
{
	return bus_register(&cxl_bus_type);
}

static void cxl_bus_exit(void)
{
	bus_unregister(&cxl_bus_type);
}

module_init(cxl_bus_init);
module_exit(cxl_bus_exit);
MODULE_LICENSE("GPL v2");