1

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>
This commit is contained in:
Andy Shevchenko 2022-12-02 19:35:13 +01:00 committed by Thierry Reding
parent fa1b9aa449
commit 55f363e19c

View File

@ -1180,8 +1180,7 @@ DEFINE_SEQ_ATTRIBUTE(pwm_debugfs);
static int __init pwm_debugfs_init(void) static int __init pwm_debugfs_init(void)
{ {
debugfs_create_file("pwm", S_IFREG | 0444, NULL, NULL, debugfs_create_file("pwm", 0444, NULL, NULL, &pwm_debugfs_fops);
&pwm_debugfs_fops);
return 0; return 0;
} }