ov5695.c (cdd38c5f1ce4398ec58fec95904b75824daab7b5) ov5695.c (15786f7b564eff32d8dae73d40d77dc4e3c7298f)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * ov5695 driver
4 *
5 * Copyright (C) 2017 Fuzhou Rockchip Electronics Co., Ltd.
6 */
7
8#include <linux/clk.h>

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

1331#if defined(CONFIG_MEDIA_CONTROLLER)
1332 ov5695->pad.flags = MEDIA_PAD_FL_SOURCE;
1333 sd->entity.function = MEDIA_ENT_F_CAM_SENSOR;
1334 ret = media_entity_pads_init(&sd->entity, 1, &ov5695->pad);
1335 if (ret < 0)
1336 goto err_power_off;
1337#endif
1338
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * ov5695 driver
4 *
5 * Copyright (C) 2017 Fuzhou Rockchip Electronics Co., Ltd.
6 */
7
8#include <linux/clk.h>

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

1331#if defined(CONFIG_MEDIA_CONTROLLER)
1332 ov5695->pad.flags = MEDIA_PAD_FL_SOURCE;
1333 sd->entity.function = MEDIA_ENT_F_CAM_SENSOR;
1334 ret = media_entity_pads_init(&sd->entity, 1, &ov5695->pad);
1335 if (ret < 0)
1336 goto err_power_off;
1337#endif
1338
1339 ret = v4l2_async_register_subdev_sensor_common(sd);
1339 ret = v4l2_async_register_subdev_sensor(sd);
1340 if (ret) {
1341 dev_err(dev, "v4l2 async register subdev failed\n");
1342 goto err_clean_entity;
1343 }
1344
1345 pm_runtime_set_active(dev);
1346 pm_runtime_enable(dev);
1347 pm_runtime_idle(dev);

--- 59 unchanged lines hidden ---
1340 if (ret) {
1341 dev_err(dev, "v4l2 async register subdev failed\n");
1342 goto err_clean_entity;
1343 }
1344
1345 pm_runtime_set_active(dev);
1346 pm_runtime_enable(dev);
1347 pm_runtime_idle(dev);

--- 59 unchanged lines hidden ---