Commit 9cdc50b2 authored by Luca Ceresoli's avatar Luca Ceresoli
Browse files

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

parent 3cb4fec9
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -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);