OSDN Git Service

ASoC: jz4740-i2s: Remove .set_sysclk()
authorAidan MacDonald <aidanmacdonald.0x0@gmail.com>
Fri, 28 Oct 2022 10:34:18 +0000 (11:34 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 31 Oct 2022 13:20:14 +0000 (13:20 +0000)
commit1c0036e03edd5d97fc0af94dd3ab7e8c58b8191d
treebfa99f1e9e6d0a4c25d3805ab5281d1bcac5db14
parentcf4484a0e61e60f7c12b7b7f73cf60898f355561
ASoC: jz4740-i2s: Remove .set_sysclk()

.set_sysclk() is effectively unused here. No machine drivers use
jz4740-i2s; and JZ4740_I2S_CLKSRC_EXT is the only selectable clock
source with simple-card, but that is also the default source and
has a fixed frequency, so configuring it would be redundant.

simple-card ignores -ENOTSUPP error codes when setting the sysclock,
so any device trees that do set the sysclock for some reason should
still work.

It's still possible to configure the clock parent manually in the
device tree and control frequency using other simple-card options,
so at the end of the day there's no real loss in functionality.

Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20221028103418.17578-4-aidanmacdonald.0x0@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/jz4740/jz4740-i2s.c
sound/soc/jz4740/jz4740-i2s.h [deleted file]