From: Mark Brown Date: Wed, 1 Aug 2012 19:05:47 +0000 (+0100) Subject: ASoC: core: Fix check before defaulting to regmap X-Git-Tag: v3.6-rc2~34^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98d3088e534a2a61f6690b5426909b0c3b57a785;p=pandora-kernel.git 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 Tested-by: Peter Ujfalusi --- Reading git-diff-tree failed