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:
parent
fa1b9aa449
commit
55f363e19c
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user