Create debugfs files directly on debugfs root instead of a subdirectory

This commit is contained in:
Ciro Santilli
2017-07-14 11:24:52 +01:00
parent d4ed593451
commit 1918c4fdfe
10 changed files with 21 additions and 26 deletions

View File

@@ -44,11 +44,7 @@ static int myinit(void)
{
debugfs_file = debugfs_create_file(
"lkmc_seq_file_single", S_IRUSR, NULL, NULL, &fops);
if (debugfs_file) {
return 0;
} else {
return -EINVAL;
}
return 0;
}
static void myexit(void)