hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/iommu/iommu-sysfs.c
....@@ -1,17 +1,14 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * IOMMU sysfs class support
34 *
45 * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
56 * Author: Alex Williamson <alex.williamson@redhat.com>
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License version 2 as
9
- * published by the Free Software Foundation.
107 */
118
129 #include <linux/device.h>
1310 #include <linux/iommu.h>
14
-#include <linux/module.h>
11
+#include <linux/init.h>
1512 #include <linux/slab.h>
1613
1714 /*
....@@ -22,25 +19,25 @@
2219 NULL,
2320 };
2421
25
-static const struct attribute_group iommu_devices_attr_group = {
22
+static const struct attribute_group devices_attr_group = {
2623 .name = "devices",
2724 .attrs = devices_attr,
2825 };
2926
30
-static const struct attribute_group *iommu_dev_groups[] = {
31
- &iommu_devices_attr_group,
27
+static const struct attribute_group *dev_groups[] = {
28
+ &devices_attr_group,
3229 NULL,
3330 };
3431
35
-static void iommu_release_device(struct device *dev)
32
+static void release_device(struct device *dev)
3633 {
3734 kfree(dev);
3835 }
3936
4037 static struct class iommu_class = {
4138 .name = "iommu",
42
- .dev_release = iommu_release_device,
43
- .dev_groups = iommu_dev_groups,
39
+ .dev_release = release_device,
40
+ .dev_groups = dev_groups,
4441 };
4542
4643 static int __init iommu_dev_init(void)