提交 10f02d11 编写于 作者: A Alexey Dobriyan 提交者: Ingo Molnar

x86: uv: Clean up uv_ptc_init(), use proc_create()

create_proc_entry() is getting duhprecated.
Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
Cc: cpw@sgi.com
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 5f9ece02
......@@ -640,13 +640,13 @@ static int __init uv_ptc_init(void)
if (!is_uv_system())
return 0;
proc_uv_ptc = create_proc_entry(UV_PTC_BASENAME, 0444, NULL);
proc_uv_ptc = proc_create(UV_PTC_BASENAME, 0444, NULL,
&proc_uv_ptc_operations);
if (!proc_uv_ptc) {
printk(KERN_ERR "unable to create %s proc entry\n",
UV_PTC_BASENAME);
return -EINVAL;
}
proc_uv_ptc->proc_fops = &proc_uv_ptc_operations;
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册