]> Pileus Git - ~andy/linux/blobdiff - block/blk-timeout.c
Merge branch 'pm-domains' into pm-for-linus
[~andy/linux] / block / blk-timeout.c
index 4f0c06c7a3388062f5aa58a8ffbe56de5d7c1f1e..780354888958cd7ea03aef2c1654b325bc9fb24e 100644 (file)
@@ -28,7 +28,10 @@ int blk_should_fake_timeout(struct request_queue *q)
 
 static int __init fail_io_timeout_debugfs(void)
 {
-       return init_fault_attr_dentries(&fail_io_timeout, "fail_io_timeout");
+       struct dentry *dir = fault_create_debugfs_attr("fail_io_timeout",
+                                               NULL, &fail_io_timeout);
+
+       return IS_ERR(dir) ? PTR_ERR(dir) : 0;
 }
 
 late_initcall(fail_io_timeout_debugfs);