diff options
| author | Joerg Roedel <jroedel@suse.de> | 2018-12-05 07:57:43 -0500 |
|---|---|---|
| committer | Joerg Roedel <jroedel@suse.de> | 2018-12-17 06:47:49 -0500 |
| commit | 6954cf9bfda153f9544c63761aabf0199710aec3 (patch) | |
| tree | bbd8b92d3b0fe30fc0460770038c612f2347b68a | |
| parent | f884f6ee62604aec60fe1760f94724be192d97c0 (diff) | |
iommu/sysfs: Rename iommu_release_device()
Remove the iommu_ prefix from the function and a few other
static data structures so that the iommu_release_device name
can be re-used in iommu core code.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
| -rw-r--r-- | drivers/iommu/iommu-sysfs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/iommu/iommu-sysfs.c b/drivers/iommu/iommu-sysfs.c index c298330ba2b7..44127d54e943 100644 --- a/drivers/iommu/iommu-sysfs.c +++ b/drivers/iommu/iommu-sysfs.c | |||
| @@ -22,25 +22,25 @@ static struct attribute *devices_attr[] = { | |||
| 22 | NULL, | 22 | NULL, |
| 23 | }; | 23 | }; |
| 24 | 24 | ||
| 25 | static const struct attribute_group iommu_devices_attr_group = { | 25 | static const struct attribute_group devices_attr_group = { |
| 26 | .name = "devices", | 26 | .name = "devices", |
| 27 | .attrs = devices_attr, | 27 | .attrs = devices_attr, |
| 28 | }; | 28 | }; |
| 29 | 29 | ||
| 30 | static const struct attribute_group *iommu_dev_groups[] = { | 30 | static const struct attribute_group *dev_groups[] = { |
| 31 | &iommu_devices_attr_group, | 31 | &devices_attr_group, |
| 32 | NULL, | 32 | NULL, |
| 33 | }; | 33 | }; |
| 34 | 34 | ||
| 35 | static void iommu_release_device(struct device *dev) | 35 | static void release_device(struct device *dev) |
| 36 | { | 36 | { |
| 37 | kfree(dev); | 37 | kfree(dev); |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | static struct class iommu_class = { | 40 | static struct class iommu_class = { |
| 41 | .name = "iommu", | 41 | .name = "iommu", |
| 42 | .dev_release = iommu_release_device, | 42 | .dev_release = release_device, |
| 43 | .dev_groups = iommu_dev_groups, | 43 | .dev_groups = dev_groups, |
| 44 | }; | 44 | }; |
| 45 | 45 | ||
| 46 | static int __init iommu_dev_init(void) | 46 | static int __init iommu_dev_init(void) |
