@@ -562,9 +562,8 @@ static int vfe_enable(struct vfe_line *line)
* vfe_disable - Disable streaming on VFE line
* @line: VFE line
*
- * Return 0 on success or a negative error code otherwise
*/
-static int vfe_disable(struct vfe_line *line)
+static void vfe_disable(struct vfe_line *line)
{
struct vfe_device *vfe = to_vfe(line);
@@ -578,7 +577,7 @@ static int vfe_disable(struct vfe_line *line)
mutex_unlock(&vfe->stream_lock);
- return 0;
+ return;
}
/*
@@ -397,9 +397,8 @@ static int vfe_enable(struct vfe_line *line)
* vfe_disable - Disable streaming on VFE line
* @line: VFE line
*
- * Return 0 on success or a negative error code otherwise
*/
-static int vfe_disable(struct vfe_line *line)
+static void vfe_disable(struct vfe_line *line)
{
struct vfe_device *vfe = to_vfe(line);
@@ -413,7 +412,7 @@ static int vfe_disable(struct vfe_line *line)
mutex_unlock(&vfe->stream_lock);
- return 0;
+ return;
}
/*
@@ -95,9 +95,8 @@ static int vfe_disable_output(struct vfe_line *line)
* vfe_gen1_disable - Disable streaming on VFE line
* @line: VFE line
*
- * Return 0 on success or a negative error code otherwise
*/
-int vfe_gen1_disable(struct vfe_line *line)
+void vfe_gen1_disable(struct vfe_line *line)
{
struct vfe_device *vfe = to_vfe(line);
@@ -114,7 +113,7 @@ int vfe_gen1_disable(struct vfe_line *line)
mutex_unlock(&vfe->stream_lock);
- return 0;
+ return;
}
static void vfe_output_init_addrs(struct vfe_device *vfe,
@@ -82,9 +82,8 @@ static inline u8 vfe_calc_interp_reso(u16 input, u16 output)
* vfe_gen1_disable - Disable streaming on VFE line
* @line: VFE line
*
- * Return 0 on success or a negative error code otherwise
*/
-int vfe_gen1_disable(struct vfe_line *line);
+void vfe_gen1_disable(struct vfe_line *line);
/*
* vfe_gen1_enable - Enable VFE module
@@ -766,10 +766,7 @@ static int vfe_set_stream(struct v4l2_subdev *sd, int enable)
dev_err(vfe->camss->dev,
"Failed to enable vfe outputs\n");
} else {
- ret = vfe->ops->vfe_disable(line);
- if (ret < 0)
- dev_err(vfe->camss->dev,
- "Failed to disable vfe outputs\n");
+ vfe->ops->vfe_disable(line);
}
return ret;
@@ -112,7 +112,7 @@ struct vfe_hw_ops {
void (*reg_update_clear)(struct vfe_device *vfe,
enum vfe_line_id line_id);
void (*subdev_init)(struct device *dev, struct vfe_device *vfe);
- int (*vfe_disable)(struct vfe_line *line);
+ void (*vfe_disable)(struct vfe_line *line);
int (*vfe_enable)(struct vfe_line *line);
int (*vfe_halt)(struct vfe_device *vfe);
void (*violation_read)(struct vfe_device *vfe);
No version of vfe_disable() currently returns nor has ever as near as I can discern ever returned a meaningful error code. Convert from the unused int return to void. Fixes: 633b388f85c5 ("media: camss: Refactor VFE HW version support") Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> --- drivers/media/platform/qcom/camss/camss-vfe-170.c | 5 ++--- drivers/media/platform/qcom/camss/camss-vfe-480.c | 5 ++--- drivers/media/platform/qcom/camss/camss-vfe-gen1.c | 5 ++--- drivers/media/platform/qcom/camss/camss-vfe-gen1.h | 3 +-- drivers/media/platform/qcom/camss/camss-vfe.c | 5 +---- drivers/media/platform/qcom/camss/camss-vfe.h | 2 +- 6 files changed, 9 insertions(+), 16 deletions(-)