mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 03:27:03 +02:00
drm/bridge: tda998x: convert to devm_drm_bridge_alloc() API
This is the new API for allocating DRM bridges. Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250424-drm-bridge-convert-to-alloc-api-v2-12-8f91a404d86b@bootlin.com Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
This commit is contained in:
parent
ed6987b674
commit
7fe58bf1a9
|
|
@ -1781,9 +1781,9 @@ static int tda998x_create(struct device *dev)
|
|||
u32 video;
|
||||
int rev_lo, rev_hi, ret;
|
||||
|
||||
priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
|
||||
if (!priv)
|
||||
return -ENOMEM;
|
||||
priv = devm_drm_bridge_alloc(dev, struct tda998x_priv, bridge, &tda998x_bridge_funcs);
|
||||
if (IS_ERR(priv))
|
||||
return PTR_ERR(priv);
|
||||
|
||||
dev_set_drvdata(dev, priv);
|
||||
|
||||
|
|
@ -1948,7 +1948,6 @@ static int tda998x_create(struct device *dev)
|
|||
tda998x_audio_codec_init(priv, &client->dev);
|
||||
}
|
||||
|
||||
priv->bridge.funcs = &tda998x_bridge_funcs;
|
||||
#ifdef CONFIG_OF
|
||||
priv->bridge.of_node = dev->of_node;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user