summaryrefslogtreecommitdiffstats
path: root/target/linux/airoha
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2023-05-20 13:56:00 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2023-05-31 21:30:49 +0200
commit2d5f3b3c4ce4c6221299f2362b3029783048f649 (patch)
treea0a2c6c2d83d85819e5d62d0033572f9e73f1e92 /target/linux/airoha
parent0f6b8e65161a840c57d86dfb8fb61d018798c0a1 (diff)
downloadopenwrt-2d5f3b3c4ce4c6221299f2362b3029783048f649.tar.gz
openwrt-2d5f3b3c4ce4c6221299f2362b3029783048f649.tar.bz2
openwrt-2d5f3b3c4ce4c6221299f2362b3029783048f649.zip
airoha: spi-en7523: Fix compile warning
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>
Diffstat (limited to 'target/linux/airoha')
-rw-r--r--target/linux/airoha/patches-5.15/0005-spi-Add-support-for-the-Airoha-EN7523-SoC-SPI-contro.patch4
1 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/airoha/patches-5.15/0005-spi-Add-support-for-the-Airoha-EN7523-SoC-SPI-contro.patch b/target/linux/airoha/patches-5.15/0005-spi-Add-support-for-the-Airoha-EN7523-SoC-SPI-contro.patch
index 8df11630c7..6c21666ed1 100644
--- a/target/linux/airoha/patches-5.15/0005-spi-Add-support-for-the-Airoha-EN7523-SoC-SPI-contro.patch
+++ b/target/linux/airoha/patches-5.15/0005-spi-Add-support-for-the-Airoha-EN7523-SoC-SPI-contro.patch
@@ -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>
@@ -166,6 +166,7 @@
+ }
+}
+
++#if 0
+static void set_spi_clock_speed(int freq_mhz)
+{
+ u32 tmp, val;
@@ -178,6 +179,7 @@
+ tmp |= (val << 8) | 1;
+ writel(tmp, ENSPI_CLOCK_DIVIDER);
+}
++#endif
+
+static void init_hw(void)
+{