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)
534534 continue ;
535535 }
536536
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 );
540541 goto err_put_node ;
541542 }
542543
@@ -577,7 +578,6 @@ int tidss_oldi_init(struct tidss_device *tidss)
577578 /* Register the bridge. */
578579 oldi -> bridge .of_node = child ;
579580 oldi -> bridge .driver_private = oldi ;
580- oldi -> bridge .funcs = & tidss_oldi_bridge_funcs ;
581581 oldi -> bridge .timings = & default_tidss_oldi_timings ;
582582
583583 tidss -> oldis [tidss -> num_oldis ++ ] = oldi ;
You can’t perform that action at this time.
0 commit comments