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

drm/omap: dss: dpi: convert to devm_drm_bridge_alloc() API

parent 9cdc50b2
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -562,7 +562,6 @@ static const struct drm_bridge_funcs dpi_bridge_funcs = {

static void dpi_bridge_init(struct dpi_data *dpi)
{
	dpi->bridge.funcs = &dpi_bridge_funcs;
	dpi->bridge.of_node = dpi->pdev->dev.of_node;
	dpi->bridge.type = DRM_MODE_CONNECTOR_DPI;

@@ -707,9 +706,9 @@ int dpi_init_port(struct dss_device *dss, struct platform_device *pdev,
	u32 datalines;
	int r;

	dpi = devm_kzalloc(&pdev->dev, sizeof(*dpi), GFP_KERNEL);
	if (!dpi)
		return -ENOMEM;
	dpi = devm_drm_bridge_alloc(&pdev->dev, struct dpi_data, bridge, &dpi_bridge_funcs);
	if (IS_ERR(dpi))
		return PTR_ERR(dpi);

	ep = of_graph_get_next_port_endpoint(port, NULL);
	if (!ep)