mirror of
https://github.com/torvalds/linux.git
synced 2026-05-13 16:59:27 +02:00
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>
This commit is contained in:
parent
a3f433c57c
commit
d28726efc6
|
|
@ -779,6 +779,8 @@ static int sti_hda_probe(struct platform_device *pdev)
|
|||
return PTR_ERR(hda->clk_hddac);
|
||||
}
|
||||
|
||||
drm_bridge_add(&hda->bridge);
|
||||
|
||||
platform_set_drvdata(pdev, hda);
|
||||
|
||||
return component_add(&pdev->dev, &sti_hda_ops);
|
||||
|
|
@ -786,7 +788,10 @@ static int sti_hda_probe(struct platform_device *pdev)
|
|||
|
||||
static void sti_hda_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct sti_hda *hda = platform_get_drvdata(pdev);
|
||||
|
||||
component_del(&pdev->dev, &sti_hda_ops);
|
||||
drm_bridge_remove(&hda->bridge);
|
||||
}
|
||||
|
||||
static const struct of_device_id hda_of_match[] = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user