File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1345,9 +1345,9 @@ static int vduse_create_dev(struct vduse_dev_config *config,
1345
1345
1346
1346
dev -> minor = ret ;
1347
1347
dev -> msg_timeout = VDUSE_MSG_DEFAULT_TIMEOUT ;
1348
- dev -> dev = device_create (vduse_class , NULL ,
1349
- MKDEV (MAJOR (vduse_major ), dev -> minor ),
1350
- dev , "%s" , config -> name );
1348
+ dev -> dev = device_create_with_groups (vduse_class , NULL ,
1349
+ MKDEV (MAJOR (vduse_major ), dev -> minor ),
1350
+ dev , vduse_dev_groups , "%s" , config -> name );
1351
1351
if (IS_ERR (dev -> dev )) {
1352
1352
ret = PTR_ERR (dev -> dev );
1353
1353
goto err_dev ;
@@ -1596,7 +1596,6 @@ static int vduse_init(void)
1596
1596
return PTR_ERR (vduse_class );
1597
1597
1598
1598
vduse_class -> devnode = vduse_devnode ;
1599
- vduse_class -> dev_groups = vduse_dev_groups ;
1600
1599
1601
1600
ret = alloc_chrdev_region (& vduse_major , 0 , VDUSE_DEV_MAX , "vduse" );
1602
1601
if (ret )
You can’t perform that action at this time.
0 commit comments