Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/sti: hda: add bridge before attaching

DRM bridges should be always added to the global bridge list before being
attached.

Acked-by: Raphael Gallais-Pou <rgallaispou@gmail.com>
Acked-by: Alain Volmat <alain.volmat@foss.st.com>
Link: https://patch.msgid.link/20251028-b4-drm-bridge-alloc-add-before-attach-v3-1-bb8611acbbfb@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>

+5
+5
drivers/gpu/drm/sti/sti_hda.c
··· 779 779 return PTR_ERR(hda->clk_hddac); 780 780 } 781 781 782 + drm_bridge_add(&hda->bridge); 783 + 782 784 platform_set_drvdata(pdev, hda); 783 785 784 786 return component_add(&pdev->dev, &sti_hda_ops); ··· 788 786 789 787 static void sti_hda_remove(struct platform_device *pdev) 790 788 { 789 + struct sti_hda *hda = platform_get_drvdata(pdev); 790 + 791 791 component_del(&pdev->dev, &sti_hda_ops); 792 + drm_bridge_remove(&hda->bridge); 792 793 } 793 794 794 795 static const struct of_device_id hda_of_match[] = {