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/bridge: dw-hdmi: convert to devm_drm_bridge_alloc() API

This is the new API for allocating DRM bridges.

Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Reviewed-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250424-drm-bridge-convert-to-alloc-api-v2-11-8f91a404d86b@bootlin.com
Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>

authored by

Luca Ceresoli and committed by
Louis Chauvet
ed6987b6 6287ffd9

+3 -4
+3 -4
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
··· 3333 3333 u8 config0; 3334 3334 u8 config3; 3335 3335 3336 - hdmi = devm_kzalloc(dev, sizeof(*hdmi), GFP_KERNEL); 3337 - if (!hdmi) 3338 - return ERR_PTR(-ENOMEM); 3336 + hdmi = devm_drm_bridge_alloc(dev, struct dw_hdmi, bridge, &dw_hdmi_bridge_funcs); 3337 + if (IS_ERR(hdmi)) 3338 + return hdmi; 3339 3339 3340 3340 hdmi->plat_data = plat_data; 3341 3341 hdmi->dev = dev; ··· 3495 3495 } 3496 3496 3497 3497 hdmi->bridge.driver_private = hdmi; 3498 - hdmi->bridge.funcs = &dw_hdmi_bridge_funcs; 3499 3498 hdmi->bridge.ops = DRM_BRIDGE_OP_DETECT | DRM_BRIDGE_OP_EDID 3500 3499 | DRM_BRIDGE_OP_HPD; 3501 3500 hdmi->bridge.interlace_allowed = true;