]> Pileus Git - ~andy/linux/commit
[media] media/i2c: ths8200: fix build failure with gcc 4.5.4
authorRussell King - ARM Linux <linux@arm.linux.org.uk>
Sun, 13 Oct 2013 10:13:33 +0000 (07:13 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 31 Oct 2013 07:40:32 +0000 (05:40 -0200)
commit4f7c09b9dbf972331822bd31473df954554a9d6b
treef41019590bdf2c3628646d086fa4e6006f771fd6
parent6dbea9f0978fc47e26aaf1fd4246e63160b778a6
[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>
drivers/media/i2c/ths8200.c