Commit ee81a4a2 authored by Luca Ceresoli's avatar Luca Ceresoli
Browse files

drm/bridge: stm_lvds: convert to devm_drm_bridge_alloc() API

parent db17fbc2
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -1049,9 +1049,9 @@ static int lvds_probe(struct platform_device *pdev)

	dev_dbg(dev, "Probing LVDS driver...\n");

	lvds = devm_kzalloc(dev, sizeof(*lvds), GFP_KERNEL);
	if (!lvds)
		return -ENOMEM;
	lvds = devm_drm_bridge_alloc(dev, struct stm_lvds, lvds_bridge, &lvds_bridge_funcs);
	if (IS_ERR(lvds))
		return PTR_ERR(lvds);

	lvds->dev = dev;

@@ -1164,7 +1164,6 @@ static int lvds_probe(struct platform_device *pdev)
		goto err_lvds_probe;
	}

	lvds->lvds_bridge.funcs = &lvds_bridge_funcs;
	lvds->lvds_bridge.of_node = dev->of_node;
	lvds->hw_version = lvds_read(lvds, LVDS_VERR);