Commit 615f1bcb authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] mx2_camera: get rid of a warning

drivers/media/platform/soc_camera/mx2_camera.c: In function 'mx27_camera_emma_prp_reset':
drivers/media/platform/soc_camera/mx2_camera.c:812:6: warning: variable 'cntl' set but not used [-Wunused-but-set-variable]
  u32 cntl;
      ^
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent cdf58a6f
...@@ -809,10 +809,9 @@ static int mx2_camera_init_videobuf(struct vb2_queue *q, ...@@ -809,10 +809,9 @@ static int mx2_camera_init_videobuf(struct vb2_queue *q,
static int mx27_camera_emma_prp_reset(struct mx2_camera_dev *pcdev) static int mx27_camera_emma_prp_reset(struct mx2_camera_dev *pcdev)
{ {
u32 cntl;
int count = 0; int count = 0;
cntl = readl(pcdev->base_emma + PRP_CNTL); readl(pcdev->base_emma + PRP_CNTL);
writel(PRP_CNTL_SWRST, pcdev->base_emma + PRP_CNTL); writel(PRP_CNTL_SWRST, pcdev->base_emma + PRP_CNTL);
while (count++ < 100) { while (count++ < 100) {
if (!(readl(pcdev->base_emma + PRP_CNTL) & PRP_CNTL_SWRST)) if (!(readl(pcdev->base_emma + PRP_CNTL) & PRP_CNTL_SWRST))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment