Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion drivers/media/i2c/ov9281.c
Original file line number Diff line number Diff line change
Expand Up @@ -1355,7 +1355,17 @@ static int ov9281_probe(struct i2c_client *client,
snprintf(sd->name, sizeof(sd->name), "m%02d_%s_%s %s",
ov9281->module_index, facing,
OV9281_NAME, dev_name(sd->dev));
ret = v4l2_async_register_subdev_sensor(sd);
{
struct fwnode_handle *ep;
ep = fwnode_graph_get_next_endpoint(dev_fwnode(dev), NULL);
if (ep) {
dev_info(dev, "Manually found endpoint: %px\n", ep);
sd->fwnode = ep;
}else{
dev_err(dev, "Could not find ep!\n");
}
}
ret = v4l2_async_register_subdev(sd);
if (ret) {
dev_err(dev, "v4l2 async register subdev failed\n");
goto err_clean_entity;
Expand Down