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

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

2481 /* Initialize source pad */
2482 imx319->pad.flags = MEDIA_PAD_FL_SOURCE;
2483 ret = media_entity_pads_init(&imx319->sd.entity, 1, &imx319->pad);
2484 if (ret) {
2485 dev_err(&client->dev, "failed to init entity pads: %d", ret);
2486 goto error_handler_free;
2487 }
2488
1// SPDX-License-Identifier: GPL-2.0
2// Copyright (C) 2018 Intel Corporation
3
4#include <asm/unaligned.h>
5#include <linux/acpi.h>
6#include <linux/i2c.h>
7#include <linux/module.h>
8#include <linux/pm_runtime.h>

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

2481 /* Initialize source pad */
2482 imx319->pad.flags = MEDIA_PAD_FL_SOURCE;
2483 ret = media_entity_pads_init(&imx319->sd.entity, 1, &imx319->pad);
2484 if (ret) {
2485 dev_err(&client->dev, "failed to init entity pads: %d", ret);
2486 goto error_handler_free;
2487 }
2488
2489 ret = v4l2_async_register_subdev_sensor_common(&imx319->sd);
2489 ret = v4l2_async_register_subdev_sensor(&imx319->sd);
2490 if (ret < 0)
2491 goto error_media_entity;
2492
2493 /*
2494 * Device is already turned on by i2c-core with ACPI domain PM.
2495 * Enable runtime PM and turn off the device.
2496 */
2497 pm_runtime_set_active(&client->dev);

--- 61 unchanged lines hidden ---
2490 if (ret < 0)
2491 goto error_media_entity;
2492
2493 /*
2494 * Device is already turned on by i2c-core with ACPI domain PM.
2495 * Enable runtime PM and turn off the device.
2496 */
2497 pm_runtime_set_active(&client->dev);

--- 61 unchanged lines hidden ---