scsi: qedi: Use DEVICE_ATTR_RO() macro
[linux-2.6-block.git] / drivers / cxl / bus.c
CommitLineData
b39cb105
DW
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 */
12struct bus_type cxl_bus_type = {
13 .name = "cxl",
14};
15EXPORT_SYMBOL_GPL(cxl_bus_type);
16
17static __init int cxl_bus_init(void)
18{
19 return bus_register(&cxl_bus_type);
20}
21
22static void cxl_bus_exit(void)
23{
24 bus_unregister(&cxl_bus_type);
25}
26
27module_init(cxl_bus_init);
28module_exit(cxl_bus_exit);
29MODULE_LICENSE("GPL v2");