File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -534,9 +534,10 @@ int tidss_oldi_init(struct tidss_device *tidss)
534
534
continue ;
535
535
}
536
536
537
- oldi = devm_kzalloc (tidss -> dev , sizeof (* oldi ), GFP_KERNEL );
538
- if (!oldi ) {
539
- ret = - ENOMEM ;
537
+ oldi = devm_drm_bridge_alloc (tidss -> dev , struct tidss_oldi , bridge ,
538
+ & tidss_oldi_bridge_funcs );
539
+ if (IS_ERR (oldi )) {
540
+ ret = PTR_ERR (oldi );
540
541
goto err_put_node ;
541
542
}
542
543
@@ -577,7 +578,6 @@ int tidss_oldi_init(struct tidss_device *tidss)
577
578
/* Register the bridge. */
578
579
oldi -> bridge .of_node = child ;
579
580
oldi -> bridge .driver_private = oldi ;
580
- oldi -> bridge .funcs = & tidss_oldi_bridge_funcs ;
581
581
oldi -> bridge .timings = & default_tidss_oldi_timings ;
582
582
583
583
tidss -> oldis [tidss -> num_oldis ++ ] = oldi ;
You can’t perform that action at this time.
0 commit comments