mailbox: bcm-pdc: Use octal permissions rather than symbolic
authorRob Rice <rob.rice@broadcom.com>
Mon, 14 Nov 2016 18:25:55 +0000 (13:25 -0500)
committerJassi Brar <jaswinder.singh@linaro.org>
Mon, 19 Dec 2016 14:40:18 +0000 (20:10 +0530)
When creating the debugfs files for the PDC driver, use
octal file permissions rather than symbolic file permissions.

Signed-off-by: Rob Rice <rob.rice@broadcom.com>
Reviewed-by: Andy Gospodarek <gospo@broadcom.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/bcm-pdc-mailbox.c

index c19dd820ea9b4baafb1b2d15ebb5031f464af9d0..a9c804fa3fbe646a0a8eea07d642fd2a3b65ca1c 100644 (file)
@@ -480,7 +480,8 @@ static void pdc_setup_debugfs(struct pdc_state *pdcs)
        if (!debugfs_dir)
                debugfs_dir = debugfs_create_dir(KBUILD_MODNAME, NULL);
 
-       pdcs->debugfs_stats = debugfs_create_file(spu_stats_name, S_IRUSR,
+       /* S_IRUSR == 0400 */
+       pdcs->debugfs_stats = debugfs_create_file(spu_stats_name, 0400,
                                                  debugfs_dir, pdcs,
                                                  &pdc_debugfs_stats);
 }