V4L/DVB (8496): saa7134: Copy tuner data earlier in init to avoid overwriting manual...
[linux-drm-fsl-dcu.git] / ipc / util.c
index 4c465cb223607dcd134673e1ebb620a949188cce..3339177b336cae51c0b5a8085ad9a087891bb0b2 100644 (file)
@@ -165,13 +165,12 @@ void __init ipc_init_proc_interface(const char *path, const char *header,
        iface->ids      = ids;
        iface->show     = show;
 
-       pde = create_proc_entry(path,
-                               S_IRUGO,        /* world readable */
-                               NULL            /* parent dir */);
-       if (pde) {
-               pde->data = iface;
-               pde->proc_fops = &sysvipc_proc_fops;
-       } else {
+       pde = proc_create_data(path,
+                              S_IRUGO,        /* world readable */
+                              NULL,           /* parent dir */
+                              &sysvipc_proc_fops,
+                              iface);
+       if (!pde) {
                kfree(iface);
        }
 }