diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-12-02 19:35:13 +0100 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2022-12-06 12:46:07 +0100 |
commit | 55f363e19cb8ca65400eeb11d716519609fbeae6 (patch) | |
tree | f89824990b5b2f3d458e8adc5b1f9452af95b5c7 /drivers/pwm | |
parent | fa1b9aa4492cc4f29178ef38ca0467c48714250e (diff) |
pwm: core: Remove S_IFREG from debugfs_create_file()
The debugfs_create_file() already has a check and adds S_IFREG
automatically. Remove unneeded flag.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20221117165812.27757-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm')
-rw-r--r-- | drivers/pwm/core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index 61bacd8d9b44..3a0967209853 100644 --- a/drivers/pwm/core.c +++ b/drivers/pwm/core.c @@ -1180,8 +1180,7 @@ DEFINE_SEQ_ATTRIBUTE(pwm_debugfs); static int __init pwm_debugfs_init(void) { - debugfs_create_file("pwm", S_IFREG | 0444, NULL, NULL, - &pwm_debugfs_fops); + debugfs_create_file("pwm", 0444, NULL, NULL, &pwm_debugfs_fops); return 0; } |