File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
drivers/char/broadcom/vc_cma Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1085,15 +1085,13 @@ static int vc_cma_init(void)
1085
1085
goto out_class_destroy ;
1086
1086
}
1087
1087
1088
- vc_cma_proc_entry = create_proc_entry (DRIVER_NAME , 0444 , NULL );
1088
+ vc_cma_proc_entry = proc_create (DRIVER_NAME , 0444 , NULL , & vc_cma_proc_fops );
1089
1089
if (vc_cma_proc_entry == NULL ) {
1090
1090
rc = - EFAULT ;
1091
- LOG_ERR ("%s: create_proc_entry failed" , __func__ );
1091
+ LOG_ERR ("%s: proc_create failed" , __func__ );
1092
1092
goto out_device_destroy ;
1093
1093
}
1094
-
1095
- vc_cma_proc_entry -> proc_fops = & vc_cma_proc_fops ;
1096
-
1094
+
1097
1095
vc_cma_inited = 1 ;
1098
1096
return 0 ;
1099
1097
@@ -1131,7 +1129,7 @@ static void __exit vc_cma_exit(void)
1131
1129
LOG_DBG ("%s: called" , __func__ );
1132
1130
1133
1131
if (vc_cma_inited ) {
1134
- remove_proc_entry (vc_cma_proc_entry -> name , NULL );
1132
+ remove_proc_entry (DRIVER_NAME , NULL );
1135
1133
device_destroy (vc_cma_class , vc_cma_devnum );
1136
1134
class_destroy (vc_cma_class );
1137
1135
cdev_del (& vc_cma_cdev );
You can’t perform that action at this time.
0 commit comments