aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/tvp5150.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/i2c/tvp5150.c')
-rw-r--r--drivers/media/i2c/tvp5150.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/media/i2c/tvp5150.c b/drivers/media/i2c/tvp5150.c
index de9db3bf1ebd..b3cf26628c09 100644
--- a/drivers/media/i2c/tvp5150.c
+++ b/drivers/media/i2c/tvp5150.c
@@ -1054,8 +1054,6 @@ static int tvp5150_g_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *
1054 1054
1055 if (!v4l2_chip_match_i2c_client(client, &reg->match)) 1055 if (!v4l2_chip_match_i2c_client(client, &reg->match))
1056 return -EINVAL; 1056 return -EINVAL;
1057 if (!capable(CAP_SYS_ADMIN))
1058 return -EPERM;
1059 res = tvp5150_read(sd, reg->reg & 0xff); 1057 res = tvp5150_read(sd, reg->reg & 0xff);
1060 if (res < 0) { 1058 if (res < 0) {
1061 v4l2_err(sd, "%s: failed with error = %d\n", __func__, res); 1059 v4l2_err(sd, "%s: failed with error = %d\n", __func__, res);
@@ -1073,8 +1071,6 @@ static int tvp5150_s_register(struct v4l2_subdev *sd, const struct v4l2_dbg_regi
1073 1071
1074 if (!v4l2_chip_match_i2c_client(client, &reg->match)) 1072 if (!v4l2_chip_match_i2c_client(client, &reg->match))
1075 return -EINVAL; 1073 return -EINVAL;
1076 if (!capable(CAP_SYS_ADMIN))
1077 return -EPERM;
1078 tvp5150_write(sd, reg->reg & 0xff, reg->val & 0xff); 1074 tvp5150_write(sd, reg->reg & 0xff, reg->val & 0xff);
1079 return 0; 1075 return 0;
1080} 1076}