[openwrt/openwrt] ramips: fix kernel module build errors on linux 5.15

LEDE Commits lede-commits at lists.infradead.org
Mon Mar 28 02:08:15 PDT 2022


nbd pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/92081f9a34e6ebefcc03e4abdecdf85423e9c739

commit 92081f9a34e6ebefcc03e4abdecdf85423e9c739
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Mon Mar 28 10:42:41 2022 +0200

    ramips: fix kernel module build errors on linux 5.15
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 target/linux/ramips/files/drivers/mmc/host/mtk-mmc/sd.c            | 1 +
 target/linux/ramips/patches-5.15/835-asoc-add-mt7620-support.patch | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/target/linux/ramips/files/drivers/mmc/host/mtk-mmc/sd.c b/target/linux/ramips/files/drivers/mmc/host/mtk-mmc/sd.c
index 188e015572..756a1c5b57 100644
--- a/target/linux/ramips/files/drivers/mmc/host/mtk-mmc/sd.c
+++ b/target/linux/ramips/files/drivers/mmc/host/mtk-mmc/sd.c
@@ -39,6 +39,7 @@
 #include <linux/spinlock.h>
 #include <linux/platform_device.h>
 #include <linux/interrupt.h>
+#include <linux/of.h>
 
 #include <linux/mmc/host.h>
 #include <linux/mmc/mmc.h>
diff --git a/target/linux/ramips/patches-5.15/835-asoc-add-mt7620-support.patch b/target/linux/ramips/patches-5.15/835-asoc-add-mt7620-support.patch
index bacce79e30..633c5120e0 100644
--- a/target/linux/ramips/patches-5.15/835-asoc-add-mt7620-support.patch
+++ b/target/linux/ramips/patches-5.15/835-asoc-add-mt7620-support.patch
@@ -572,7 +572,7 @@ Signed-off-by: John Crispin <blogic at openwrt.org>
 +		.rates = SNDRV_PCM_RATE_CONTINUOUS,
 +		.formats = SNDRV_PCM_FMTBIT_S16_LE,
 +	},
-+	.symmetric_rates = 1,
++	.symmetric_rate = 1,
 +};
 +
 +static struct snd_pcm_hardware ralink_pcm_hardware = {




More information about the lede-commits mailing list