Skip to content
Unverified Commit e44f3d49 authored by Yong Zhi's avatar Yong Zhi Committed by Mark Brown
Browse files

ASoC: max98373: replace gpio_request with devm_gpio_request



Use devm_gpio_request() to automatic unroll when fails and avoid
resource leaks at error paths.

Signed-off-by: default avatarYong Zhi <yong.zhi@intel.com>
Link: https://lore.kernel.org/r/1572905399-22402-1-git-send-email-yong.zhi@intel.com


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