diff options
Diffstat (limited to 'drivers/media/i2c/ov7670.c')
-rw-r--r-- | drivers/media/i2c/ov7670.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/media/i2c/ov7670.c b/drivers/media/i2c/ov7670.c index d71602f4fb43..b030279810d3 100644 --- a/drivers/media/i2c/ov7670.c +++ b/drivers/media/i2c/ov7670.c | |||
@@ -1479,8 +1479,6 @@ static int ov7670_g_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *r | |||
1479 | 1479 | ||
1480 | if (!v4l2_chip_match_i2c_client(client, ®->match)) | 1480 | if (!v4l2_chip_match_i2c_client(client, ®->match)) |
1481 | return -EINVAL; | 1481 | return -EINVAL; |
1482 | if (!capable(CAP_SYS_ADMIN)) | ||
1483 | return -EPERM; | ||
1484 | ret = ov7670_read(sd, reg->reg & 0xff, &val); | 1482 | ret = ov7670_read(sd, reg->reg & 0xff, &val); |
1485 | reg->val = val; | 1483 | reg->val = val; |
1486 | reg->size = 1; | 1484 | reg->size = 1; |
@@ -1493,8 +1491,6 @@ static int ov7670_s_register(struct v4l2_subdev *sd, const struct v4l2_dbg_regis | |||
1493 | 1491 | ||
1494 | if (!v4l2_chip_match_i2c_client(client, ®->match)) | 1492 | if (!v4l2_chip_match_i2c_client(client, ®->match)) |
1495 | return -EINVAL; | 1493 | return -EINVAL; |
1496 | if (!capable(CAP_SYS_ADMIN)) | ||
1497 | return -EPERM; | ||
1498 | ov7670_write(sd, reg->reg & 0xff, reg->val & 0xff); | 1494 | ov7670_write(sd, reg->reg & 0xff, reg->val & 0xff); |
1499 | return 0; | 1495 | return 0; |
1500 | } | 1496 | } |