File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2552,7 +2552,9 @@ static int mtk_dp_probe(struct platform_device *pdev)
2552
2552
DRM_BRIDGE_OP_DETECT | DRM_BRIDGE_OP_EDID | DRM_BRIDGE_OP_HPD ;
2553
2553
mtk_dp -> bridge .type = mtk_dp -> data -> bridge_type ;
2554
2554
2555
- drm_bridge_add (& mtk_dp -> bridge );
2555
+ ret = devm_drm_bridge_add (dev , & mtk_dp -> bridge );
2556
+ if (ret )
2557
+ return dev_err_probe (dev , ret , "Failed to add bridge\n" );
2556
2558
2557
2559
mtk_dp -> need_debounce = true;
2558
2560
timer_setup (& mtk_dp -> debounce_timer , mtk_dp_debounce_timer , 0 );
@@ -2570,7 +2572,6 @@ static int mtk_dp_remove(struct platform_device *pdev)
2570
2572
pm_runtime_put (& pdev -> dev );
2571
2573
pm_runtime_disable (& pdev -> dev );
2572
2574
del_timer_sync (& mtk_dp -> debounce_timer );
2573
- drm_bridge_remove (& mtk_dp -> bridge );
2574
2575
platform_device_unregister (mtk_dp -> phy_dev );
2575
2576
if (mtk_dp -> audio_pdev )
2576
2577
platform_device_unregister (mtk_dp -> audio_pdev );
You can’t perform that action at this time.
0 commit comments