clk: at91: generated: SSCs don't have a gclk
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 16 Oct 2018 14:21:40 +0000 (16:21 +0200)
committerStephen Boyd <sboyd@kernel.org>
Wed, 17 Oct 2018 16:39:20 +0000 (09:39 -0700)
As the SSCs don't have gclk, don't check for their ID to allow them to set
the audio pll rate.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/at91/clk-generated.c

index 33481368740e7dc038fe1e32065e2659d8cec730..e709a12269c02f346e839b3b9a28e7ebff79411b 100644 (file)
@@ -26,8 +26,6 @@
 #define GENERATED_SOURCE_MAX   6
 #define GENERATED_MAX_DIV      255
 
-#define GCK_ID_SSC0            43
-#define GCK_ID_SSC1            44
 #define GCK_ID_I2S0            54
 #define GCK_ID_I2S1            55
 #define GCK_ID_CLASSD          59
@@ -368,8 +366,7 @@ static void __init of_sama5d2_clk_generated_setup(struct device_node *np)
 
                if (of_device_is_compatible(np,
                                            "atmel,sama5d2-clk-generated")) {
-                       if (gck->id == GCK_ID_SSC0 || gck->id == GCK_ID_SSC1 ||
-                           gck->id == GCK_ID_I2S0 || gck->id == GCK_ID_I2S1 ||
+                       if (gck->id == GCK_ID_I2S0 || gck->id == GCK_ID_I2S1 ||
                            gck->id == GCK_ID_CLASSD)
                                gck->audio_pll_allowed = true;
                        else