mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
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>
This commit is contained in:
parent
7a909b2bea
commit
2b42027f44
|
|
@ -1289,9 +1289,10 @@ static int cdns_dsi_drm_probe(struct platform_device *pdev)
|
|||
int ret, irq;
|
||||
u32 val;
|
||||
|
||||
dsi = devm_kzalloc(&pdev->dev, sizeof(*dsi), GFP_KERNEL);
|
||||
if (!dsi)
|
||||
return -ENOMEM;
|
||||
dsi = devm_drm_bridge_alloc(&pdev->dev, struct cdns_dsi, input.bridge,
|
||||
&cdns_dsi_bridge_funcs);
|
||||
if (IS_ERR(dsi))
|
||||
return PTR_ERR(dsi);
|
||||
|
||||
platform_set_drvdata(pdev, dsi);
|
||||
|
||||
|
|
@ -1349,7 +1350,6 @@ static int cdns_dsi_drm_probe(struct platform_device *pdev)
|
|||
* CDNS_DPI_INPUT.
|
||||
*/
|
||||
input->id = CDNS_DPI_INPUT;
|
||||
input->bridge.funcs = &cdns_dsi_bridge_funcs;
|
||||
input->bridge.of_node = pdev->dev.of_node;
|
||||
|
||||
/* Mask all interrupts before registering the IRQ handler. */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user