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: cdns-dsi: convert to devm_drm_bridge_alloc() API

This is the new API for allocating DRM bridges.

Acked-by: Maxime Ripard <mripard@kernel.org>
Reviewed-by: Anusha Srivatsa <asrivats@redhat.com>
Link: https://lore.kernel.org/r/20250509-drm-bridge-convert-to-alloc-api-v3-4-b8bc1f16d7aa@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>

+4 -4
+4 -4
drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c
··· 1289 1289 int ret, irq; 1290 1290 u32 val; 1291 1291 1292 - dsi = devm_kzalloc(&pdev->dev, sizeof(*dsi), GFP_KERNEL); 1293 - if (!dsi) 1294 - return -ENOMEM; 1292 + dsi = devm_drm_bridge_alloc(&pdev->dev, struct cdns_dsi, input.bridge, 1293 + &cdns_dsi_bridge_funcs); 1294 + if (IS_ERR(dsi)) 1295 + return PTR_ERR(dsi); 1295 1296 1296 1297 platform_set_drvdata(pdev, dsi); 1297 1298 ··· 1350 1349 * CDNS_DPI_INPUT. 1351 1350 */ 1352 1351 input->id = CDNS_DPI_INPUT; 1353 - input->bridge.funcs = &cdns_dsi_bridge_funcs; 1354 1352 input->bridge.of_node = pdev->dev.of_node; 1355 1353 1356 1354 /* Mask all interrupts before registering the IRQ handler. */