diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-08-26 10:20:42 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-08-26 17:52:14 -0400 |
commit | 615f1bcb34317afc615043dd61ba54198f075629 (patch) | |
tree | f190a58731b6596c932403427e0087c0229defd2 /drivers/media | |
parent | cdf58a6f87a6c941527699c00443d186154f475c (diff) |
[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: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/platform/soc_camera/mx2_camera.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/platform/soc_camera/mx2_camera.c b/drivers/media/platform/soc_camera/mx2_camera.c index b40bc2e5ba47..2d57c1d272b8 100644 --- a/drivers/media/platform/soc_camera/mx2_camera.c +++ b/drivers/media/platform/soc_camera/mx2_camera.c | |||
@@ -809,10 +809,9 @@ static int mx2_camera_init_videobuf(struct vb2_queue *q, | |||
809 | 809 | ||
810 | static int mx27_camera_emma_prp_reset(struct mx2_camera_dev *pcdev) | 810 | static int mx27_camera_emma_prp_reset(struct mx2_camera_dev *pcdev) |
811 | { | 811 | { |
812 | u32 cntl; | ||
813 | int count = 0; | 812 | int count = 0; |
814 | 813 | ||
815 | cntl = readl(pcdev->base_emma + PRP_CNTL); | 814 | readl(pcdev->base_emma + PRP_CNTL); |
816 | writel(PRP_CNTL_SWRST, pcdev->base_emma + PRP_CNTL); | 815 | writel(PRP_CNTL_SWRST, pcdev->base_emma + PRP_CNTL); |
817 | while (count++ < 100) { | 816 | while (count++ < 100) { |
818 | if (!(readl(pcdev->base_emma + PRP_CNTL) & PRP_CNTL_SWRST)) | 817 | if (!(readl(pcdev->base_emma + PRP_CNTL) & PRP_CNTL_SWRST)) |