]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: max9877: Make driver global regmap struct local
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 16 Jul 2015 19:22:49 +0000 (21:22 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 16 Jul 2015 20:35:12 +0000 (21:35 +0100)
commitdf2e268226e2e3d79980a5dddfd683126f79ddb4
treeb99b8de75e766e5a7e0776a18695d3892fc85cae
parent7d9fb377a747025232fe4e8d17e54ff8032aba27
ASoC: max9877: Make driver global regmap struct local

Use a stack local variable to handle function local state rather than a
global static variable. The later has a potential for race conditions if
the probe function runs for two devices concurrently.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/max9877.c