|
@@ -1639,8 +1639,10 @@ static int s5c73m3_get_platform_data(struct s5c73m3 *state)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
- v4l2_of_parse_endpoint(node_ep, &ep);
|
|
|
|
|
|
+ ret = v4l2_of_parse_endpoint(node_ep, &ep);
|
|
of_node_put(node_ep);
|
|
of_node_put(node_ep);
|
|
|
|
+ if (ret)
|
|
|
|
+ return ret;
|
|
|
|
|
|
if (ep.bus_type != V4L2_MBUS_CSI2) {
|
|
if (ep.bus_type != V4L2_MBUS_CSI2) {
|
|
dev_err(dev, "unsupported bus type\n");
|
|
dev_err(dev, "unsupported bus type\n");
|