ov8856.c (5acac83bf2e42f51ab9fd315d657798754bf0bb8) ov8856.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/clk.h>
7#include <linux/delay.h>
8#include <linux/gpio/consumer.h>

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

1790 ov8856->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR;
1791 ov8856->pad.flags = MEDIA_PAD_FL_SOURCE;
1792 ret = media_entity_pads_init(&ov8856->sd.entity, 1, &ov8856->pad);
1793 if (ret) {
1794 dev_err(&client->dev, "failed to init entity pads: %d", ret);
1795 goto probe_error_v4l2_ctrl_handler_free;
1796 }
1797
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/clk.h>
7#include <linux/delay.h>
8#include <linux/gpio/consumer.h>

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

1790 ov8856->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR;
1791 ov8856->pad.flags = MEDIA_PAD_FL_SOURCE;
1792 ret = media_entity_pads_init(&ov8856->sd.entity, 1, &ov8856->pad);
1793 if (ret) {
1794 dev_err(&client->dev, "failed to init entity pads: %d", ret);
1795 goto probe_error_v4l2_ctrl_handler_free;
1796 }
1797
1798 ret = v4l2_async_register_subdev_sensor_common(&ov8856->sd);
1798 ret = v4l2_async_register_subdev_sensor(&ov8856->sd);
1799 if (ret < 0) {
1800 dev_err(&client->dev, "failed to register V4L2 subdev: %d",
1801 ret);
1802 goto probe_error_media_entity_cleanup;
1803 }
1804
1805 /*
1806 * Device is already turned on by i2c-core with ACPI domain PM.

--- 56 unchanged lines hidden ---
1799 if (ret < 0) {
1800 dev_err(&client->dev, "failed to register V4L2 subdev: %d",
1801 ret);
1802 goto probe_error_media_entity_cleanup;
1803 }
1804
1805 /*
1806 * Device is already turned on by i2c-core with ACPI domain PM.

--- 56 unchanged lines hidden ---