diff options
Diffstat (limited to 'drivers/media/i2c/adv7183.c')
-rw-r--r-- | drivers/media/i2c/adv7183.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/media/i2c/adv7183.c b/drivers/media/i2c/adv7183.c index 42b2dec4ca3a..7c48e22b41a2 100644 --- a/drivers/media/i2c/adv7183.c +++ b/drivers/media/i2c/adv7183.c | |||
@@ -500,8 +500,6 @@ static int adv7183_g_register(struct v4l2_subdev *sd, struct v4l2_dbg_register * | |||
500 | 500 | ||
501 | if (!v4l2_chip_match_i2c_client(client, ®->match)) | 501 | if (!v4l2_chip_match_i2c_client(client, ®->match)) |
502 | return -EINVAL; | 502 | return -EINVAL; |
503 | if (!capable(CAP_SYS_ADMIN)) | ||
504 | return -EPERM; | ||
505 | reg->val = adv7183_read(sd, reg->reg & 0xff); | 503 | reg->val = adv7183_read(sd, reg->reg & 0xff); |
506 | reg->size = 1; | 504 | reg->size = 1; |
507 | return 0; | 505 | return 0; |
@@ -513,8 +511,6 @@ static int adv7183_s_register(struct v4l2_subdev *sd, const struct v4l2_dbg_regi | |||
513 | 511 | ||
514 | if (!v4l2_chip_match_i2c_client(client, ®->match)) | 512 | if (!v4l2_chip_match_i2c_client(client, ®->match)) |
515 | return -EINVAL; | 513 | return -EINVAL; |
516 | if (!capable(CAP_SYS_ADMIN)) | ||
517 | return -EPERM; | ||
518 | adv7183_write(sd, reg->reg & 0xff, reg->val & 0xff); | 514 | adv7183_write(sd, reg->reg & 0xff, reg->val & 0xff); |
519 | return 0; | 515 | return 0; |
520 | } | 516 | } |