@@ -1424,15 +1424,16 @@ DEFINE_SHOW_ATTRIBUTE(dpu_crtc_debugfs_state);
1424
1424
static int _dpu_crtc_init_debugfs (struct drm_crtc * crtc )
1425
1425
{
1426
1426
struct dpu_crtc * dpu_crtc = to_dpu_crtc (crtc );
1427
+ struct dentry * debugfs_root ;
1427
1428
1428
- dpu_crtc -> debugfs_root = debugfs_create_dir (dpu_crtc -> name ,
1429
+ debugfs_root = debugfs_create_dir (dpu_crtc -> name ,
1429
1430
crtc -> dev -> primary -> debugfs_root );
1430
1431
1431
1432
debugfs_create_file ("status" , 0400 ,
1432
- dpu_crtc -> debugfs_root ,
1433
+ debugfs_root ,
1433
1434
dpu_crtc , & _dpu_debugfs_status_fops );
1434
1435
debugfs_create_file ("state" , 0600 ,
1435
- dpu_crtc -> debugfs_root ,
1436
+ debugfs_root ,
1436
1437
& dpu_crtc -> base ,
1437
1438
& dpu_crtc_debugfs_state_fops );
1438
1439
@@ -1450,13 +1451,6 @@ static int dpu_crtc_late_register(struct drm_crtc *crtc)
1450
1451
return _dpu_crtc_init_debugfs (crtc );
1451
1452
}
1452
1453
1453
- static void dpu_crtc_early_unregister (struct drm_crtc * crtc )
1454
- {
1455
- struct dpu_crtc * dpu_crtc = to_dpu_crtc (crtc );
1456
-
1457
- debugfs_remove_recursive (dpu_crtc -> debugfs_root );
1458
- }
1459
-
1460
1454
static const struct drm_crtc_funcs dpu_crtc_funcs = {
1461
1455
.set_config = drm_atomic_helper_set_config ,
1462
1456
.destroy = dpu_crtc_destroy ,
@@ -1465,7 +1459,6 @@ static const struct drm_crtc_funcs dpu_crtc_funcs = {
1465
1459
.atomic_duplicate_state = dpu_crtc_duplicate_state ,
1466
1460
.atomic_destroy_state = dpu_crtc_destroy_state ,
1467
1461
.late_register = dpu_crtc_late_register ,
1468
- .early_unregister = dpu_crtc_early_unregister ,
1469
1462
.verify_crc_source = dpu_crtc_verify_crc_source ,
1470
1463
.set_crc_source = dpu_crtc_set_crc_source ,
1471
1464
.enable_vblank = msm_crtc_enable_vblank ,
0 commit comments