]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: core: Fix check before defaulting to regmap
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 1 Aug 2012 19:05:47 +0000 (20:05 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 2 Aug 2012 10:43:45 +0000 (11:43 +0100)
commit65cfe702f30d0f1949e7a49722631945a5b2d8e6
tree1ff1a2de36cd469d503550c117b4f3b5aa65d94b
parent791d55e25d067d0357874dfe66cb0d95b0822e69
ASoC: core: Fix check before defaulting to regmap

Check if the chip has provided a write operation (which is mandatory for
I/O) rather than looking for control data as some of the MFDs use a global
for this. Also skip the attempt if there's no regmap available by device
in case things get confused by the attempt to default.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Tested-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
sound/soc/soc-core.c