linux/drivers/gpu/drm/sti
Luca Ceresoli 602d565d3c drm/sti: hda: convert to devm_drm_bridge_alloc() API
devm_drm_bridge_alloc() is the new API to be used for allocating (and
partially initializing) a private driver struct embedding a struct
drm_bridge.

This driver was missed during the automated conversion in commit
9c399719cf ("drm: convert many bridge drivers from devm_kzalloc() to
devm_drm_bridge_alloc() API") and following commits.

The lack of conversion for this driver is a bug since commit a7748dd127
("drm/bridge: get/put the bridge reference in drm_bridge_add/remove()")
which is the first commmit having added a drm_bridge_get/put() pair and
thus exposing the incorrect initial refcount issue.

Fix this by switching the driver to the new API.

Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Closes: https://lore.kernel.org/all/ce9c6aa3-5372-468f-a4bf-5a261259e459@samsung.com/
Fixes: a7748dd127 ("drm/bridge: get/put the bridge reference in drm_bridge_add/remove()")
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20250708-drm-bridge-convert-to-alloc-api-leftovers-v1-2-6285de8c3759@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
2025-07-09 11:24:45 +02:00
..
Kconfig
Makefile drm/sti: remove duplicate object names 2025-04-03 18:24:24 +02:00
NOTES
sti_awg_utils.c
sti_awg_utils.h
sti_compositor.c drm/sti: move to devm_platform_ioremap_resource() usage 2025-03-10 16:25:26 -04:00
sti_compositor.h
sti_crtc.c
sti_crtc.h
sti_cursor.c
sti_cursor.h
sti_drv.c
sti_drv.h
sti_dvo.c drm/sti: dvo: convert to devm_drm_bridge_alloc() API 2025-05-21 13:40:09 +02:00
sti_gdp.c
sti_gdp.h
sti_hda.c drm/sti: hda: convert to devm_drm_bridge_alloc() API 2025-07-09 11:24:45 +02:00
sti_hdmi.c drm/sti: hdmi: convert to devm_drm_bridge_alloc() API 2025-07-09 11:24:45 +02:00
sti_hdmi.h drm/sti: hdmi: convert to devm_drm_bridge_alloc() API 2025-07-09 11:24:45 +02:00
sti_hdmi_tx3g4c28phy.c
sti_hdmi_tx3g4c28phy.h
sti_hqvdp.c drm/sti: move to devm_platform_ioremap_resource() usage 2025-03-10 16:25:26 -04:00
sti_hqvdp_lut.h
sti_mixer.c
sti_mixer.h
sti_plane.c
sti_plane.h
sti_tvout.c drm/sti: move to devm_platform_ioremap_resource() usage 2025-03-10 16:25:26 -04:00
sti_vid.c
sti_vid.h
sti_vtg.c drm/sti: move to devm_platform_ioremap_resource() usage 2025-03-10 16:25:26 -04:00
sti_vtg.h