hi556.c (cdd38c5f1ce4398ec58fec95904b75824daab7b5) | hi556.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> --- 1131 unchanged lines hidden (view full) --- 1140 hi556->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; 1141 hi556->pad.flags = MEDIA_PAD_FL_SOURCE; 1142 ret = media_entity_pads_init(&hi556->sd.entity, 1, &hi556->pad); 1143 if (ret) { 1144 dev_err(&client->dev, "failed to init entity pads: %d", ret); 1145 goto probe_error_v4l2_ctrl_handler_free; 1146 } 1147 | 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> --- 1131 unchanged lines hidden (view full) --- 1140 hi556->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; 1141 hi556->pad.flags = MEDIA_PAD_FL_SOURCE; 1142 ret = media_entity_pads_init(&hi556->sd.entity, 1, &hi556->pad); 1143 if (ret) { 1144 dev_err(&client->dev, "failed to init entity pads: %d", ret); 1145 goto probe_error_v4l2_ctrl_handler_free; 1146 } 1147 |
1148 ret = v4l2_async_register_subdev_sensor_common(&hi556->sd); | 1148 ret = v4l2_async_register_subdev_sensor(&hi556->sd); |
1149 if (ret < 0) { 1150 dev_err(&client->dev, "failed to register V4L2 subdev: %d", 1151 ret); 1152 goto probe_error_media_entity_cleanup; 1153 } 1154 1155 pm_runtime_set_active(&client->dev); 1156 pm_runtime_enable(&client->dev); --- 42 unchanged lines hidden --- | 1149 if (ret < 0) { 1150 dev_err(&client->dev, "failed to register V4L2 subdev: %d", 1151 ret); 1152 goto probe_error_media_entity_cleanup; 1153 } 1154 1155 pm_runtime_set_active(&client->dev); 1156 pm_runtime_enable(&client->dev); --- 42 unchanged lines hidden --- |