iommu/omap: Fix the permissions on nr_tlb_entries
authorSuman Anna <s-anna@ti.com>
Wed, 22 Oct 2014 22:22:28 +0000 (17:22 -0500)
committerJoerg Roedel <jroedel@suse.de>
Thu, 23 Oct 2014 12:32:25 +0000 (14:32 +0200)
The permissions on the debugfs entry "nr_tlb_entries" should
have been octal, not decimal, so fix it.

Signed-off-by: Suman Anna <s-anna@ti.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/omap-iommu-debug.c

index 0fb92aa..a520438 100644 (file)
@@ -256,7 +256,7 @@ static int iommu_debug_register(struct device *dev, void *data)
                goto nomem;
        parent = d;
 
-       d = debugfs_create_u8("nr_tlb_entries", 400, parent,
+       d = debugfs_create_u8("nr_tlb_entries", 0400, parent,
                              (u8 *)&obj->nr_tlb_entries);
        if (!d)
                goto nomem;