diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2016-07-12 15:30:55 -0700 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-07-12 19:58:28 -0300 |
commit | 6a91d60aba671cf8756a56d6157a9c971d2a5222 (patch) | |
tree | 75796882e048404bf46aed278ba0bc4cf3eb9891 /drivers/staging | |
parent | 9d01315d132469fd0a92f5a13c0a605d6ce96b21 (diff) | |
download | linux-stable-6a91d60aba671cf8756a56d6157a9c971d2a5222.tar.gz linux-stable-6a91d60aba671cf8756a56d6157a9c971d2a5222.tar.bz2 linux-stable-6a91d60aba671cf8756a56d6157a9c971d2a5222.zip |
[media] cec-adap.c: work around gcc-4.4.4 anon union initializer bug
drivers/staging/media/cec/cec-adap.c: In function 'cec_queue_msg_fh':
drivers/staging/media/cec/cec-adap.c:141: error: unknown field 'lost_msgs' specified in initializer
Fixes: 9881fe0ca187c21 ("[media] cec: add HDMI CEC framework (adapter)")
Cc: Hans Verkuil <hans.verkuil@cisco.com>
Cc: Kamil Debski <kamil@wypas.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/media/cec/cec-adap.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/staging/media/cec/cec-adap.c b/drivers/staging/media/cec/cec-adap.c index 2cd656bd5272..f184bf6945cc 100644 --- a/drivers/staging/media/cec/cec-adap.c +++ b/drivers/staging/media/cec/cec-adap.c @@ -137,8 +137,12 @@ static void cec_queue_event(struct cec_adapter *adap, static void cec_queue_msg_fh(struct cec_fh *fh, const struct cec_msg *msg) { static const struct cec_event ev_lost_msg = { + .ts = 0, .event = CEC_EVENT_LOST_MSGS, - .lost_msgs.lost_msgs = 1, + .flags = 0, + { + .lost_msgs.lost_msgs = 1, + }, }; struct cec_msg_entry *entry; |