mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 16:12:59 +02:00
drm/omap: dss: 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-9-b8bc1f16d7aa@bootlin.com Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
This commit is contained in:
parent
ac5869aae6
commit
f35753992c
|
|
@ -4701,7 +4701,6 @@ static const struct drm_bridge_funcs dsi_bridge_funcs = {
|
|||
|
||||
static void dsi_bridge_init(struct dsi_data *dsi)
|
||||
{
|
||||
dsi->bridge.funcs = &dsi_bridge_funcs;
|
||||
dsi->bridge.of_node = dsi->host.dev->of_node;
|
||||
dsi->bridge.type = DRM_MODE_CONNECTOR_DSI;
|
||||
|
||||
|
|
@ -4894,9 +4893,9 @@ static int dsi_probe(struct platform_device *pdev)
|
|||
unsigned int i;
|
||||
int r;
|
||||
|
||||
dsi = devm_kzalloc(dev, sizeof(*dsi), GFP_KERNEL);
|
||||
if (!dsi)
|
||||
return -ENOMEM;
|
||||
dsi = devm_drm_bridge_alloc(dev, struct dsi_data, bridge, &dsi_bridge_funcs);
|
||||
if (IS_ERR(dsi))
|
||||
return PTR_ERR(dsi);
|
||||
|
||||
dsi->dev = dev;
|
||||
dev_set_drvdata(dev, dsi);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user