Merge branch 'work.d_name' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux-2.6-microblaze.git] / lib / test_fpu.c
index c33764a..e82db19 100644 (file)
@@ -63,7 +63,7 @@ static int test_fpu_get(void *data, u64 *val)
        return status;
 }
 
-DEFINE_SIMPLE_ATTRIBUTE(test_fpu_fops, test_fpu_get, NULL, "%lld\n");
+DEFINE_DEBUGFS_ATTRIBUTE(test_fpu_fops, test_fpu_get, NULL, "%lld\n");
 static struct dentry *selftest_dir;
 
 static int __init test_fpu_init(void)
@@ -72,8 +72,8 @@ static int __init test_fpu_init(void)
        if (!selftest_dir)
                return -ENOMEM;
 
-       debugfs_create_file("test_fpu", 0444, selftest_dir, NULL,
-                           &test_fpu_fops);
+       debugfs_create_file_unsafe("test_fpu", 0444, selftest_dir, NULL,
+                                  &test_fpu_fops);
 
        return 0;
 }