• Arnd Bergmann's avatar
    ASoC: cq93vc: fix cq93vc_get_regmap build error · a8784dd0
    Arnd Bergmann authored
    49101a25 "ASoC: cq93vc: Remove the set_cache_io() entirely from
    ASoC probe" introduced the cq93vc_get_regmap function that has an
    obvious build error referring to the 'codec' variable that is not
    declared anywhere"
    
    sound/soc/codecs/cq93vc.c: In function 'cq93vc_get_regmap':
    sound/soc/codecs/cq93vc.c:157:34: error: 'codec' undeclared (first use in this function)
      struct davinci_vc *davinci_vc = codec->dev->platform_data;
                                      ^
    
    This changes the code to compile again, presumably in the way it was
    intended. Not tested.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Reviewed-by: default avatarXiubo Li <Li.Xiubo@freescale.com>
    Signed-off-by: default avatarMark Brown <broonie@linaro.org>
    a8784dd0
cq93vc.c 4.87 KB