x86: uv: Clean up uv_ptc_init(), use proc_create()
authorAlexey Dobriyan <adobriyan@gmail.com>
Sun, 23 Aug 2009 19:17:27 +0000 (23:17 +0400)
committerIngo Molnar <mingo@elte.hu>
Mon, 24 Aug 2009 10:26:46 +0000 (12:26 +0200)
create_proc_entry() is getting duhprecated.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: cpw@sgi.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/tlb_uv.c

index 77b9689..503c1f2 100644 (file)
@@ -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;
 }