mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 22:22:08 +02:00
drm/bridge: sii902x: 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-7-b8bc1f16d7aa@bootlin.com Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
This commit is contained in:
parent
3cb4fec95e
commit
9cdc50b205
|
|
@ -1135,7 +1135,6 @@ static int sii902x_init(struct sii902x *sii902x)
|
|||
if (ret)
|
||||
goto err_unreg_audio;
|
||||
|
||||
sii902x->bridge.funcs = &sii902x_bridge_funcs;
|
||||
sii902x->bridge.of_node = dev->of_node;
|
||||
sii902x->bridge.timings = &default_sii902x_timings;
|
||||
sii902x->bridge.ops = DRM_BRIDGE_OP_DETECT | DRM_BRIDGE_OP_EDID;
|
||||
|
|
@ -1170,9 +1169,9 @@ static int sii902x_probe(struct i2c_client *client)
|
|||
return -EIO;
|
||||
}
|
||||
|
||||
sii902x = devm_kzalloc(dev, sizeof(*sii902x), GFP_KERNEL);
|
||||
if (!sii902x)
|
||||
return -ENOMEM;
|
||||
sii902x = devm_drm_bridge_alloc(dev, struct sii902x, bridge, &sii902x_bridge_funcs);
|
||||
if (IS_ERR(sii902x))
|
||||
return PTR_ERR(sii902x);
|
||||
|
||||
sii902x->i2c = client;
|
||||
sii902x->regmap = devm_regmap_init_i2c(client, &sii902x_regmap_config);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user