airoha: spi-en7523: Fix compile warning
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 20 May 2023 11:56:00 +0000 (13:56 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 31 May 2023 19:30:49 +0000 (21:30 +0200)
The set_spi_clock_speed() function is not used, this causes a compile
warning which results in a build error with -WError.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/airoha/patches-5.15/0005-spi-Add-support-for-the-Airoha-EN7523-SoC-SPI-contro.patch

index 8df11630c754f378bb477a48205655fae2c54f8b..6c21666ed11c51b51fe4a9aa8ad2d5f1801e248c 100644 (file)
@@ -25,7 +25,7 @@
  obj-$(CONFIG_SPI_FSL_CPM)             += spi-fsl-cpm.o
 --- /dev/null
 +++ b/drivers/spi/spi-en7523.c
-@@ -0,0 +1,311 @@
+@@ -0,0 +1,313 @@
 +// SPDX-License-Identifier: GPL-2.0
 +
 +#include <linux/module.h>
 +      }
 +}
 +
++#if 0
 +static void set_spi_clock_speed(int freq_mhz)
 +{
 +      u32 tmp, val;
 +      tmp |= (val << 8) | 1;
 +      writel(tmp, ENSPI_CLOCK_DIVIDER);
 +}
++#endif
 +
 +static void init_hw(void)
 +{