Use spi_delay for interframe spaces for kernel>=5.9.0
authorMiroslav Ondra <ondra@faster.cz>
Tue, 13 Jul 2021 16:22:47 +0000 (18:22 +0200)
committerMiroslav Ondra <ondra@faster.cz>
Tue, 13 Jul 2021 16:22:47 +0000 (18:22 +0200)
modules/unipi/src/unipi_spi.c

index 4114a7a48f95fa88d191792ec7961f6f5e918878..a5beaf46f807b8c39a2a59aefa29d418938e2efb 100644 (file)
@@ -130,7 +130,6 @@ static struct neuronspi_op_buffer UNIPISPI_IDLE_MESSAGE = {
 #ifdef USE_UNIPI_CPUFREQ_PATCH
        static struct cpufreq_policy * current_policy = NULL;
 #endif
-#endif
 
 static void unipi_spi_set_cs(struct spi_device *spi, bool enable)
 {
@@ -184,6 +183,7 @@ static void unipi_spi_set_cs(struct spi_device *spi, bool enable)
 #endif
 }
 
+#endif
 
 /************************
  * Non-static Functions *