summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2016-11-01 07:31:55 +0100
committerMark Brown <broonie@kernel.org>2016-11-01 21:03:41 +0100
commit3716a891d65cc04217da1af5f2bccb7eaf6092c2 (patch)
tree6585676ecffd09bbbef9827ac5653e3b2fa00cc6 /include
parentASoC: sun4i-codec: return error code instead of NULL when create_card fails (diff)
downloadlinux-3716a891d65cc04217da1af5f2bccb7eaf6092c2.tar.xz
linux-3716a891d65cc04217da1af5f2bccb7eaf6092c2.zip
ASoC: sun4i-codec: Enable bus clock after getting GPIO
In the current probe function the GPIO is acquired after the codec's bus clock is enabled. However if it fails to acquire the GPIO due to a deferred probe, it does not disable the bus clock before bailing out. This would result in the clock being enabled multiple times. Move the code that enables the bus clock after the part that gets the GPIO, maintaining a separation between resource acquisition and device enablement in the probe function. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions