ASoC: max98090: Add check for CODEC type
authorTushar Behera <tushar.b@samsung.com>
Fri, 4 Jul 2014 09:12:16 +0000 (14:42 +0530)
committerMark Brown <broonie@linaro.org>
Fri, 4 Jul 2014 19:30:27 +0000 (20:30 +0100)
commit978b641f9563019a24032d5dee8a75963cd248ff
tree90d9b77bb83225d887775a6972f1ee1330bfeeaa
parent053e69d57cc6253b19ea661f929c8c1b6a907bff
ASoC: max98090: Add check for CODEC type

CODEC type (MAX98090/MAX98091) can be specified from device-tree file,
it can also be obtained from the CODEC during runtime.

Add an explicit check to figure out if both are matching, else print
a message warning about the same.

Signed-off-by: Tushar Behera <tushar.b@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/max98090.c