OSDN Git Service

ASoC: fsl_mqs: Don't check clock is NULL before calling clk API
authorShengjiu Wang <shengjiu.wang@nxp.com>
Tue, 23 Jun 2020 06:01:11 +0000 (14:01 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 23 Jun 2020 10:14:22 +0000 (11:14 +0100)
commitadf46113a608d9515801997fc96cbfe8ffa89ed3
treef1423a337f8b3ed00bffb44a410d07d72a6bd4e5
parentf141a422159a199f4c8dedb7e0df55b3b2cf16cd
ASoC: fsl_mqs: Don't check clock is NULL before calling clk API

Because clk_prepare_enable and clk_disable_unprepare should
check input clock parameter is NULL or not internally, then
we don't need to check them before calling the function.

Fixes: 9e28f6532c61 ("ASoC: fsl_mqs: Add MQS component driver")
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Link: https://lore.kernel.org/r/743be216bd504c26e8d45d5ce4a84561b67a122b.1592888591.git.shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_mqs.c