OSDN Git Service

ASoC: soc-core: move soc_probe_component() position
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 23 Aug 2019 00:58:42 +0000 (09:58 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 2 Sep 2019 12:20:06 +0000 (13:20 +0100)
commitffd60fba19d9752f553aac367cd40362011ab6c9
tree274c67f358cd41c90b0a98ed576a7cbc304ce1bf
parent9a7c9fe1203eb360b3a01b65a18bcd0de6670c53
ASoC: soc-core: move soc_probe_component() position

It is easy to read code if it is cleanly using paired function/naming,
like start <-> stop, register <-> unregister, etc, etc.
But, current ALSA SoC code is very random, unbalance, not paired, etc.
It is easy to create bug at the such code, and it will be difficult to
debug.

soc_probe_comonent() has paired soc_remove_comonent(),
but, these are implemented at different place.
So it is difficult to confirm code.
This patch moves soc_probe_component() next to
soc_remove_component().

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87sgps7lbt.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c