diff options
| author | Russell King - ARM Linux <linux@arm.linux.org.uk> | 2013-10-13 06:13:33 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-10-31 03:40:32 -0400 |
| commit | 4f7c09b9dbf972331822bd31473df954554a9d6b (patch) | |
| tree | f41019590bdf2c3628646d086fa4e6006f771fd6 | |
| parent | 6dbea9f0978fc47e26aaf1fd4246e63160b778a6 (diff) | |
[media] media/i2c: ths8200: fix build failure with gcc 4.5.4
v3.12-rc fails to build with this error:
drivers/media/i2c/ths8200.c:49:2: error: unknown field 'bt' specified in initializer
drivers/media/i2c/ths8200.c:50:3: error: field name not in record or union initializer
drivers/media/i2c/ths8200.c:50:3: error: (near initialization for 'ths8200_timings_cap.reserved')
drivers/media/i2c/ths8200.c:51:3: error: field name not in record or union initializer
drivers/media/i2c/ths8200.c:51:3: error: (near initialization for 'ths8200_timings_cap.reserved')
...
with gcc 4.5.4. This error was not detected in builds prior to v3.12-rc.
This patch fixes this.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: stable@vger.kernel.org # For kernel v3.12
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
| -rw-r--r-- | drivers/media/i2c/ths8200.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/drivers/media/i2c/ths8200.c b/drivers/media/i2c/ths8200.c index a58a8f663ffb..5ae2a4f16a52 100644 --- a/drivers/media/i2c/ths8200.c +++ b/drivers/media/i2c/ths8200.c | |||
| @@ -46,13 +46,17 @@ struct ths8200_state { | |||
| 46 | 46 | ||
| 47 | static const struct v4l2_dv_timings_cap ths8200_timings_cap = { | 47 | static const struct v4l2_dv_timings_cap ths8200_timings_cap = { |
| 48 | .type = V4L2_DV_BT_656_1120, | 48 | .type = V4L2_DV_BT_656_1120, |
| 49 | .bt = { | 49 | /* Allow gcc 4.5.4 to build this */ |
| 50 | .max_width = 1920, | 50 | .reserved = { }, |
| 51 | .max_height = 1080, | 51 | { |
| 52 | .min_pixelclock = 25000000, | 52 | .bt = { |
| 53 | .max_pixelclock = 148500000, | 53 | .max_width = 1920, |
| 54 | .standards = V4L2_DV_BT_STD_CEA861, | 54 | .max_height = 1080, |
| 55 | .capabilities = V4L2_DV_BT_CAP_PROGRESSIVE, | 55 | .min_pixelclock = 25000000, |
| 56 | .max_pixelclock = 148500000, | ||
| 57 | .standards = V4L2_DV_BT_STD_CEA861, | ||
| 58 | .capabilities = V4L2_DV_BT_CAP_PROGRESSIVE, | ||
| 59 | }, | ||
| 56 | }, | 60 | }, |
| 57 | }; | 61 | }; |
| 58 | 62 | ||
