ov13858.c (cdd38c5f1ce4398ec58fec95904b75824daab7b5) ov13858.c (15786f7b564eff32d8dae73d40d77dc4e3c7298f)
1// SPDX-License-Identifier: GPL-2.0
2// Copyright (c) 2017 Intel Corporation.
3
4#include <linux/acpi.h>
5#include <linux/i2c.h>
6#include <linux/module.h>
7#include <linux/pm_runtime.h>
8#include <media/v4l2-ctrls.h>

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

1733 /* Initialize source pad */
1734 ov13858->pad.flags = MEDIA_PAD_FL_SOURCE;
1735 ret = media_entity_pads_init(&ov13858->sd.entity, 1, &ov13858->pad);
1736 if (ret) {
1737 dev_err(&client->dev, "%s failed:%d\n", __func__, ret);
1738 goto error_handler_free;
1739 }
1740
1// SPDX-License-Identifier: GPL-2.0
2// Copyright (c) 2017 Intel Corporation.
3
4#include <linux/acpi.h>
5#include <linux/i2c.h>
6#include <linux/module.h>
7#include <linux/pm_runtime.h>
8#include <media/v4l2-ctrls.h>

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

1733 /* Initialize source pad */
1734 ov13858->pad.flags = MEDIA_PAD_FL_SOURCE;
1735 ret = media_entity_pads_init(&ov13858->sd.entity, 1, &ov13858->pad);
1736 if (ret) {
1737 dev_err(&client->dev, "%s failed:%d\n", __func__, ret);
1738 goto error_handler_free;
1739 }
1740
1741 ret = v4l2_async_register_subdev_sensor_common(&ov13858->sd);
1741 ret = v4l2_async_register_subdev_sensor(&ov13858->sd);
1742 if (ret < 0)
1743 goto error_media_entity;
1744
1745 /*
1746 * Device is already turned on by i2c-core with ACPI domain PM.
1747 * Enable runtime PM and turn off the device.
1748 */
1749 pm_runtime_set_active(&client->dev);

--- 67 unchanged lines hidden ---
1742 if (ret < 0)
1743 goto error_media_entity;
1744
1745 /*
1746 * Device is already turned on by i2c-core with ACPI domain PM.
1747 * Enable runtime PM and turn off the device.
1748 */
1749 pm_runtime_set_active(&client->dev);

--- 67 unchanged lines hidden ---