Skip to content
  • Andrew Morton's avatar
    drivers/pinctrl/intel/pinctrl-baytrail.c: fix build with gcc-4.4 · bbccb9c7
    Andrew Morton authored
    
    
    gcc-4.4 and thereabouts has issues with initializers of anonymous
    unions, and it generates the following warnings:
    
      drivers/pinctrl/intel/pinctrl-baytrail.c:413: error: unknown field 'simple_funcs' specified in initializer
      drivers/pinctrl/intel/pinctrl-baytrail.c:413: warning: missing braces around initializer
      drivers/pinctrl/intel/pinctrl-baytrail.c:413: warning: (near initialization for 'byt_score_groups[0].<anonymous>')
      drivers/pinctrl/intel/pinctrl-baytrail.c:415: error: unknown field 'simple_funcs' specified in initializer
      drivers/pinctrl/intel/pinctrl-baytrail.c:417: error: unknown field 'simple_funcs' specified in initializer
      ...
    
    Work around this.
    
    Acked-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
    Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Cc: Linus Walleij <linus.walleij@linaro.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    bbccb9c7