summaryrefslogtreecommitdiffstats
path: root/Documentation/RCU/lockdep-splat.txt
diff options
context:
space:
mode:
authorMatthias Kaehlcke <mka@chromium.org>2018-01-19 15:36:50 -0800
committerMark Brown <broonie@kernel.org>2018-01-22 12:20:46 +0000
commit35b84bf0614a7da98bfbbac70ed3d01c3b5b6c58 (patch)
tree82ae84e6ebf99726291a5eff2b36fa0d6a2adab7 /Documentation/RCU/lockdep-splat.txt
parent7fb59e940f6225beed0b24cd09e9fad9aebb7565 (diff)
downloadop-kernel-dev-35b84bf0614a7da98bfbbac70ed3d01c3b5b6c58.zip
op-kernel-dev-35b84bf0614a7da98bfbbac70ed3d01c3b5b6c58.tar.gz
ASoC: dmic: Fix check of return value from read of 'num-channels'
Commit 7fb59e940f62 ("ASoC: codecs: dmic: Make number of channels configurable") introduces an optional property to the device tree to specify the number of DMIC channels. dmic_codec_probe() uses of_property_read_u32() to read the DT value, and expects a return value of -ENOENT when the property does not exist. This expectation is incorrect, the actual value returned in this case is -EINVAL (see of_find_property_value_of_size(), which is called under the hood). Check for -EINVAL instead. Fixes: 7fb59e940f62 ("ASoC: codecs: dmic: Make number of channels configurable") Signed-off-by: Matthias Kaehlcke <mka@chromium.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation/RCU/lockdep-splat.txt')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud