summaryrefslogtreecommitdiffstats
path: root/bsp/meta-rcar/meta-rcar-gen3-adas/recipes-kernel/linux/linux-renesas/0449-media-i2c-soc_camera-ov495_ov2775-Remove-early_param.patch
blob: 0c4c533514ed24d49f5eb63b99a2af561ee24708 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
From 63e509e237f058679dd4a04012f53c8c56aaafb0 Mon Sep 17 00:00:00 2001
From: Valentine Barshak <valentine.barshak@cogentembedded.com>
Date: Thu, 19 Dec 2019 15:08:14 +0300
Subject: [PATCH] media: i2c: soc_camera: ov495_ov2775: Remove early_param
 parser
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Use conf_link variable instead of force_conf_link,
and remove eaarly_param() parser altogether.
This fixes the following module compilation error:

  expected declaration specifiers or ‘...’ before ‘ov495_force_conf_link’

Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
---
 drivers/media/i2c/soc_camera/ov495_ov2775.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/drivers/media/i2c/soc_camera/ov495_ov2775.c b/drivers/media/i2c/soc_camera/ov495_ov2775.c
index aee8145..c40970c 100644
--- a/drivers/media/i2c/soc_camera/ov495_ov2775.c
+++ b/drivers/media/i2c/soc_camera/ov495_ov2775.c
@@ -57,17 +57,6 @@ struct ov495_priv {
 
 };
 
-static int force_conf_link;
-
-static __init int ov495_force_conf_link(char *str)
-{
-	/* force configuration link */
-	/* used only if robust firmware flashing required (f.e. recovery) */
-	force_conf_link = 1;
-	return 0;
-}
-early_param("force_conf_link", ov495_force_conf_link);
-
 static inline struct ov495_priv *to_ov495(const struct i2c_client *client)
 {
 	return container_of(i2c_get_clientdata(client), struct ov495_priv, sd);
@@ -429,7 +418,7 @@ static int ov495_initialize(struct i2c_client *client)
 	client->addr = tmp_addr;
 #endif
 
-	if (unlikely(force_conf_link))
+	if (unlikely(conf_link))
 		goto out;
 
 #if 0
-- 
2.7.4