diff options
-rw-r--r-- | drivers/iommu/iommu-debugfs.c | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/drivers/iommu/iommu-debugfs.c b/drivers/iommu/iommu-debugfs.c index 3b1bf88fd1b0..f03548942096 100644 --- a/drivers/iommu/iommu-debugfs.c +++ b/drivers/iommu/iommu-debugfs.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <linux/debugfs.h> | 12 | #include <linux/debugfs.h> |
13 | 13 | ||
14 | struct dentry *iommu_debugfs_dir; | 14 | struct dentry *iommu_debugfs_dir; |
15 | EXPORT_SYMBOL_GPL(iommu_debugfs_dir); | ||
15 | 16 | ||
16 | /** | 17 | /** |
17 | * iommu_debugfs_setup - create the top-level iommu directory in debugfs | 18 | * iommu_debugfs_setup - create the top-level iommu directory in debugfs |
@@ -23,9 +24,9 @@ struct dentry *iommu_debugfs_dir; | |||
23 | * Emit a strong warning at boot time to indicate that this feature is | 24 | * Emit a strong warning at boot time to indicate that this feature is |
24 | * enabled. | 25 | * enabled. |
25 | * | 26 | * |
26 | * This function is called from iommu_init; drivers may then call | 27 | * This function is called from iommu_init; drivers may then use |
27 | * iommu_debugfs_new_driver_dir() to instantiate a vendor-specific | 28 | * iommu_debugfs_dir to instantiate a vendor-specific directory to be used |
28 | * directory to be used to expose internal data. | 29 | * to expose internal data. |
29 | */ | 30 | */ |
30 | void iommu_debugfs_setup(void) | 31 | void iommu_debugfs_setup(void) |
31 | { | 32 | { |
@@ -48,19 +49,3 @@ void iommu_debugfs_setup(void) | |||
48 | pr_warn("*************************************************************\n"); | 49 | pr_warn("*************************************************************\n"); |
49 | } | 50 | } |
50 | } | 51 | } |
51 | |||
52 | /** | ||
53 | * iommu_debugfs_new_driver_dir - create a vendor directory under debugfs/iommu | ||
54 | * @vendor: name of the vendor-specific subdirectory to create | ||
55 | * | ||
56 | * This function is called by an IOMMU driver to create the top-level debugfs | ||
57 | * directory for that driver. | ||
58 | * | ||
59 | * Return: upon success, a pointer to the dentry for the new directory. | ||
60 | * NULL in case of failure. | ||
61 | */ | ||
62 | struct dentry *iommu_debugfs_new_driver_dir(const char *vendor) | ||
63 | { | ||
64 | return debugfs_create_dir(vendor, iommu_debugfs_dir); | ||
65 | } | ||
66 | EXPORT_SYMBOL_GPL(iommu_debugfs_new_driver_dir); | ||