ASoC: Warn if WM8903 platform data is used to enable microphone IRQ
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 11 Feb 2011 14:39:13 +0000 (14:39 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 13 Feb 2011 19:50:20 +0000 (19:50 +0000)
The WM8903 interrupts are clear on read so if the WM8903 detection is
enabled from platform data when the IRQ is in use (rather than using a
direct signal from a GPIO) status may be lost during startup. Help users
spot this misconfiguration by adding a WARN_ON().

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/codecs/wm8903.c

Simple merge