Commit 1ca380bc authored by Guido Gunther's avatar Guido Gunther

media: mxc-csi: Fail on inexistent alias

Otherwise we'd pick '-19' as device name.
Signed-off-by: Guido Gunther's avatarGuido Günther <>
parent 72ae8e28
......@@ -468,6 +468,8 @@ static int mipi_csi2_parse_dt(struct mxc_mipi_csi2_dev *csi2dev)
u32 i;
csi2dev->id = of_alias_get_id(node, "csi");
if (csi2dev->id < 0)
return csi2dev->id;
csi2dev->vchannel = of_property_read_bool(node, "virtual-channel");
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment