Skip to content
Commit 6702dfcc authored by Sergey Kiselev's avatar Sergey Kiselev Committed by Mark Brown
Browse files

ASoC: wm8731: initialize the hardware when loading the codec driver



This patch moves the requesting supplies, hardware reset and
initialization from wm8731_probe to wm8731_i2c_probe and wm8731_spi_probe.
So that the codec hardware is initialized when loading the codec driver,
and not when loading the machine driver. This avoids unnecesary hardware
resets and re-initializations when re-loading the machine driver.

Signed-off-by: default avatarSergey Kiselev <sergey.kiselev@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d770e558
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment