]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: max98373: replace gpio_request with devm_gpio_request
authorYong Zhi <yong.zhi@intel.com>
Mon, 4 Nov 2019 22:09:59 +0000 (16:09 -0600)
committerMark Brown <broonie@kernel.org>
Tue, 5 Nov 2019 18:52:41 +0000 (18:52 +0000)
commit9134261344c595f6c19b8da0ca3cea7006588d1f
treebb7824d80570da5bf4c74dc92e99905376242b32
parentbedb76b7bf0a9e839f23bfc2ad9b4731044a921e
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: Yong Zhi <yong.zhi@intel.com>
Link: https://lore.kernel.org/r/1572905399-22402-1-git-send-email-yong.zhi@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/max98373.c