]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/blob - rt-patches/0273-drivers-media-vsp1_video-fix-compile-error.patch
rt_patches: required rebase due to printk change
[hercules2020/nv-tegra/linux-4.4.git] / rt-patches / 0273-drivers-media-vsp1_video-fix-compile-error.patch
1 From 9d50f4f0c119148b17a3546f6420ea744a7b59b8 Mon Sep 17 00:00:00 2001
2 From: Anders Roxell <anders.roxell@linaro.org>
3 Date: Fri, 15 Jan 2016 01:09:43 +0100
4 Subject: [PATCH 273/366] drivers/media: vsp1_video: fix compile error
5
6 This was found with the -RT patch enabled, but the fix should apply to
7 non-RT also.
8
9 Compilation error without this fix:
10 ../drivers/media/platform/vsp1/vsp1_video.c: In function
11 'vsp1_pipeline_stopped':
12 ../drivers/media/platform/vsp1/vsp1_video.c:524:2: error: expected
13 expression before 'do'
14   spin_unlock_irqrestore(&pipe->irqlock, flags);
15     ^
16
17 Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
18 Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
19 ---
20  drivers/media/platform/vsp1/vsp1_video.c | 2 +-
21  1 file changed, 1 insertion(+), 1 deletion(-)
22
23 diff --git a/drivers/media/platform/vsp1/vsp1_video.c b/drivers/media/platform/vsp1/vsp1_video.c
24 index 5ce88e1..b4f8cd7 100644
25 --- a/drivers/media/platform/vsp1/vsp1_video.c
26 +++ b/drivers/media/platform/vsp1/vsp1_video.c
27 @@ -520,7 +520,7 @@ static bool vsp1_pipeline_stopped(struct vsp1_pipeline *pipe)
28         bool stopped;
29  
30         spin_lock_irqsave(&pipe->irqlock, flags);
31 -       stopped = pipe->state == VSP1_PIPELINE_STOPPED,
32 +       stopped = pipe->state == VSP1_PIPELINE_STOPPED;
33         spin_unlock_irqrestore(&pipe->irqlock, flags);
34  
35         return stopped;
36 -- 
37 1.9.1
38