ov5675.c (5acac83bf2e42f51ab9fd315d657798754bf0bb8) ov5675.c (15786f7b564eff32d8dae73d40d77dc4e3c7298f)
1// SPDX-License-Identifier: GPL-2.0
2// Copyright (c) 2019 Intel Corporation.
3
4#include <asm/unaligned.h>
5#include <linux/acpi.h>
6#include <linux/delay.h>
7#include <linux/i2c.h>
8#include <linux/module.h>

--- 1179 unchanged lines hidden (view full) ---

1188 ov5675->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR;
1189 ov5675->pad.flags = MEDIA_PAD_FL_SOURCE;
1190 ret = media_entity_pads_init(&ov5675->sd.entity, 1, &ov5675->pad);
1191 if (ret) {
1192 dev_err(&client->dev, "failed to init entity pads: %d", ret);
1193 goto probe_error_v4l2_ctrl_handler_free;
1194 }
1195
1// SPDX-License-Identifier: GPL-2.0
2// Copyright (c) 2019 Intel Corporation.
3
4#include <asm/unaligned.h>
5#include <linux/acpi.h>
6#include <linux/delay.h>
7#include <linux/i2c.h>
8#include <linux/module.h>

--- 1179 unchanged lines hidden (view full) ---

1188 ov5675->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR;
1189 ov5675->pad.flags = MEDIA_PAD_FL_SOURCE;
1190 ret = media_entity_pads_init(&ov5675->sd.entity, 1, &ov5675->pad);
1191 if (ret) {
1192 dev_err(&client->dev, "failed to init entity pads: %d", ret);
1193 goto probe_error_v4l2_ctrl_handler_free;
1194 }
1195
1196 ret = v4l2_async_register_subdev_sensor_common(&ov5675->sd);
1196 ret = v4l2_async_register_subdev_sensor(&ov5675->sd);
1197 if (ret < 0) {
1198 dev_err(&client->dev, "failed to register V4L2 subdev: %d",
1199 ret);
1200 goto probe_error_media_entity_cleanup;
1201 }
1202
1203 /*
1204 * Device is already turned on by i2c-core with ACPI domain PM.

--- 46 unchanged lines hidden ---
1197 if (ret < 0) {
1198 dev_err(&client->dev, "failed to register V4L2 subdev: %d",
1199 ret);
1200 goto probe_error_media_entity_cleanup;
1201 }
1202
1203 /*
1204 * Device is already turned on by i2c-core with ACPI domain PM.

--- 46 unchanged lines hidden ---