forked from mirrors/linux
drm/mcde: 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: Linus Walleij <linus.walleij@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20250424-drm-bridge-convert-to-alloc-api-v2-15-8f91a404d86b@bootlin.com Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
This commit is contained in:
parent
91c5c7b5bb
commit
40c25b9ec6
1 changed files with 3 additions and 4 deletions
|
|
@ -1138,7 +1138,6 @@ static int mcde_dsi_bind(struct device *dev, struct device *master,
|
||||||
d->bridge_out = bridge;
|
d->bridge_out = bridge;
|
||||||
|
|
||||||
/* Create a bridge for this DSI channel */
|
/* Create a bridge for this DSI channel */
|
||||||
d->bridge.funcs = &mcde_dsi_bridge_funcs;
|
|
||||||
d->bridge.of_node = dev->of_node;
|
d->bridge.of_node = dev->of_node;
|
||||||
drm_bridge_add(&d->bridge);
|
drm_bridge_add(&d->bridge);
|
||||||
|
|
||||||
|
|
@ -1174,9 +1173,9 @@ static int mcde_dsi_probe(struct platform_device *pdev)
|
||||||
u32 dsi_id;
|
u32 dsi_id;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
d = devm_kzalloc(dev, sizeof(*d), GFP_KERNEL);
|
d = devm_drm_bridge_alloc(dev, struct mcde_dsi, bridge, &mcde_dsi_bridge_funcs);
|
||||||
if (!d)
|
if (IS_ERR(d))
|
||||||
return -ENOMEM;
|
return PTR_ERR(d);
|
||||||
d->dev = dev;
|
d->dev = dev;
|
||||||
platform_set_drvdata(pdev, d);
|
platform_set_drvdata(pdev, d);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue