From d88989f8c612a995fec92bb2db9304727019b315 Mon Sep 17 00:00:00 2001 From: Ethan Nelson-Moore Date: Tue, 9 Jun 2026 21:24:26 -0700 Subject: [PATCH] wifi: mt76: mt7925: remove code guarded by nonexistent config option A small piece of code in mt7925/regs.h depends on CONFIG_MT76_DEV, which has never been defined in the kernel. Remove this dead code. Discovered while searching for CONFIG_* symbols referenced in code but not defined in any Kconfig file. Signed-off-by: Ethan Nelson-Moore Reviewed-by: Matthias Brugger Link: https://patch.msgid.link/20260610042429.222717-1-enelsonmoore@gmail.com Signed-off-by: Felix Fietkau --- mt7925/regs.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mt7925/regs.h b/mt7925/regs.h index cb937d56..ab6c33b4 100644 --- a/mt7925/regs.h +++ b/mt7925/regs.h @@ -88,11 +88,7 @@ #define MT_HIF_REMAP_BASE_L1 0x130000 #define MT_HIF_REMAP_L2 0x0120 -#if IS_ENABLED(CONFIG_MT76_DEV) -#define MT_HIF_REMAP_BASE_L2 (0x7c500000 - (0x7c000000 - 0x18000000)) -#else #define MT_HIF_REMAP_BASE_L2 0x18500000 -#endif #define MT_WFSYS_SW_RST_B 0x7c000140