diff --git a/sound/soc/amlogic/auge/audio_clks.c b/sound/soc/amlogic/auge/audio_clks.c index a63211b2a616..387edd115abe 100644 --- a/sound/soc/amlogic/auge/audio_clks.c +++ b/sound/soc/amlogic/auge/audio_clks.c @@ -23,6 +23,8 @@ #define DRV_NAME "audio-clocks" +DEFINE_SPINLOCK(aclk_lock); + static const struct of_device_id audio_clocks_of_match[] = { { .compatible = "amlogic, axg-audio-clocks", diff --git a/sound/soc/amlogic/auge/audio_clks.h b/sound/soc/amlogic/auge/audio_clks.h index a97cfc2fcbfb..cafc7c36bfc7 100644 --- a/sound/soc/amlogic/auge/audio_clks.h +++ b/sound/soc/amlogic/auge/audio_clks.h @@ -104,6 +104,7 @@ extern struct audio_clk_init g12a_audio_clks_init; extern struct audio_clk_init tl1_audio_clks_init; extern struct audio_clk_init sm1_audio_clks_init; extern struct audio_clk_init tm2_audio_clks_init; +extern spinlock_t aclk_lock; struct clk_chipinfo { /* force clock source as oscin(24M) */ diff --git a/sound/soc/amlogic/auge/axg,clocks.c b/sound/soc/amlogic/auge/axg,clocks.c index e337ac3c89bf..9b60ca96b4d0 100644 --- a/sound/soc/amlogic/auge/axg,clocks.c +++ b/sound/soc/amlogic/auge/axg,clocks.c @@ -22,8 +22,6 @@ #include "audio_clks.h" #include "regs.h" -static spinlock_t aclk_lock; - static const char *const mclk_parent_names[] = {"mpll0", "mpll1", "mpll2", "mpll3", "hifi_pll", "fclk_div3", "fclk_div4", "gp0_pll"}; diff --git a/sound/soc/amlogic/auge/g12a,clocks.c b/sound/soc/amlogic/auge/g12a,clocks.c index 66131cf05242..808abc7b304e 100644 --- a/sound/soc/amlogic/auge/g12a,clocks.c +++ b/sound/soc/amlogic/auge/g12a,clocks.c @@ -22,8 +22,6 @@ #include "audio_clks.h" #include "regs.h" -static spinlock_t aclk_lock; - static const char *const mclk_parent_names[] = {"mpll0", "mpll1", "mpll2", "mpll3", "hifi_pll", "fclk_div3", "fclk_div4", "gp0_pll"}; diff --git a/sound/soc/amlogic/auge/sm1,clocks.c b/sound/soc/amlogic/auge/sm1,clocks.c index 48cfc263b7d6..7a2321df8bfe 100644 --- a/sound/soc/amlogic/auge/sm1,clocks.c +++ b/sound/soc/amlogic/auge/sm1,clocks.c @@ -22,8 +22,6 @@ #include "audio_clks.h" #include "regs.h" -static spinlock_t aclk_lock; - static const char *const mclk_parent_names[] = { "mpll0", "mpll1", "mpll2", "mpll3", "hifi_pll", "fclk_div3", "fclk_div4", "fclk_div5"}; diff --git a/sound/soc/amlogic/auge/tl1,clocks.c b/sound/soc/amlogic/auge/tl1,clocks.c index 7f18e89ae3c3..db2a110f6e75 100644 --- a/sound/soc/amlogic/auge/tl1,clocks.c +++ b/sound/soc/amlogic/auge/tl1,clocks.c @@ -22,8 +22,6 @@ #include "audio_clks.h" #include "regs.h" -static spinlock_t aclk_lock; - static const char *const mclk_parent_names[] = { "mpll0", "mpll1", "mpll2", "mpll3", "hifi_pll", "fclk_div3", "fclk_div4", "fclk_div5"}; diff --git a/sound/soc/amlogic/auge/tm2,clocks.c b/sound/soc/amlogic/auge/tm2,clocks.c index bb23cf22709b..a188d2ae6255 100644 --- a/sound/soc/amlogic/auge/tm2,clocks.c +++ b/sound/soc/amlogic/auge/tm2,clocks.c @@ -22,8 +22,6 @@ #include "audio_clks.h" #include "regs.h" -static spinlock_t aclk_lock; - static const char *const mclk_parent_names[] = { "mpll0", "mpll1", "mpll2", "mpll3", "hifi_pll", "fclk_div3", "fclk_div4", "fclk_div5"};