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: ti-sn65dsi86: convert to devm_drm_bridge_alloc() API

This is the new API for allocating DRM bridges.

Reviewed-by: Herve Codina <herve.codina@bootlin.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Tested-by: Douglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20250424-drm-bridge-convert-to-alloc-api-v2-13-8f91a404d86b@bootlin.com
Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>

authored by

Luca Ceresoli and committed by
Louis Chauvet
a4754ae9 7fe58bf1

+3 -4
+3 -4
drivers/gpu/drm/bridge/ti-sn65dsi86.c
··· 1317 1317 if (ret) 1318 1318 return ret; 1319 1319 1320 - pdata->bridge.funcs = &ti_sn_bridge_funcs; 1321 1320 pdata->bridge.of_node = np; 1322 1321 pdata->bridge.type = pdata->next_bridge->type == DRM_MODE_CONNECTOR_DisplayPort 1323 1322 ? DRM_MODE_CONNECTOR_DisplayPort : DRM_MODE_CONNECTOR_eDP; ··· 1906 1907 return -ENODEV; 1907 1908 } 1908 1909 1909 - pdata = devm_kzalloc(dev, sizeof(struct ti_sn65dsi86), GFP_KERNEL); 1910 - if (!pdata) 1911 - return -ENOMEM; 1910 + pdata = devm_drm_bridge_alloc(dev, struct ti_sn65dsi86, bridge, &ti_sn_bridge_funcs); 1911 + if (IS_ERR(pdata)) 1912 + return PTR_ERR(pdata); 1912 1913 dev_set_drvdata(dev, pdata); 1913 1914 pdata->dev = dev; 1914 1915