aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2022-12-02 19:35:13 +0100
committerThierry Reding <[email protected]>2022-12-06 12:46:07 +0100
commit55f363e19cb8ca65400eeb11d716519609fbeae6 (patch)
treef89824990b5b2f3d458e8adc5b1f9452af95b5c7
parentfa1b9aa4492cc4f29178ef38ca0467c48714250e (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 <[email protected]> Acked-by: Uwe Kleine-König <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
-rw-r--r--drivers/pwm/core.c3
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;
}