X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=lib%2Ftest_fpu.c;h=e82db19fed84acc759f3f974cc86c365e3496649;hb=f292e8730a349577aaf13635399b39a50b8f5910;hp=c33764aa3eb8f203637b394e9d55d537fecfae39;hpb=2bd056f550808eaa2c34a14169c99f81ead083a7;p=linux-2.6-microblaze.git diff --git a/lib/test_fpu.c b/lib/test_fpu.c index c33764aa3eb8..e82db19fed84 100644 --- a/lib/test_fpu.c +++ b/lib/test_fpu.c @@ -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; }