From: Hiroshi Doyu Subject: [PATCH 2/2] iommu/tegra: smmu: Use __debugfs_create_dir Date: Wed, 8 Aug 2012 09:24:33 +0300 Message-ID: <1344407073-12030-3-git-send-email-hdoyu@nvidia.com> References: <1344407073-12030-1-git-send-email-hdoyu@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1344407073-12030-1-git-send-email-hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Hiroshi Doyu Cc: Grant Likely , Stephen Warren , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Chris Wright , iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, Al Viro , linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: iommu@lists.linux-foundation.org The commit c3b1a35 "debugfs: make sure that debugfs_create_file() gets used only for regulars" doesn't allow to use debugfs_create_file() for dir. Use the version with "data", __debugfs_create_dir(). Signed-off-by: Hiroshi Doyu Reported-by: Laxman Dewangan --- drivers/iommu/tegra-smmu.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c index 5e51fb7..41aff7a 100644 --- a/drivers/iommu/tegra-smmu.c +++ b/drivers/iommu/tegra-smmu.c @@ -1035,9 +1035,7 @@ static void smmu_debugfs_create(struct smmu_device *smmu) int i; struct dentry *root; - root = debugfs_create_file(dev_name(smmu->dev), - S_IFDIR | S_IRWXU | S_IRUGO | S_IXUGO, - NULL, smmu, NULL); + root = __debugfs_create_dir(dev_name(smmu->dev), NULL, smmu); if (!root) goto err_out; smmu->debugfs_root = root; -- 1.7.5.4