[PATCH] sound: soc: ti: rx51: remove stale reference to machine_is_nokia_rx51()
Ethan Nelson-Moore
enelsonmoore at gmail.com
Fri May 8 18:22:46 PDT 2026
The rx51 driver relies on the machine_is_nokia_rx51() macro, which is
always false since commit 9b7141d01a76 ("ARM: OMAP2+: Drop legacy board
file for n900"). Its presence prevents the removal of boards no longer
present in the kernel from arch/arm/tools/mach-types, because the
machine_is_*() macros are generated from mach-types. Drop this unused
code.
Signed-off-by: Ethan Nelson-Moore <enelsonmoore at gmail.com>
---
sound/soc/ti/rx51.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sound/soc/ti/rx51.c b/sound/soc/ti/rx51.c
index 7eeb12e5066c..cfc23e0838c2 100644
--- a/sound/soc/ti/rx51.c
+++ b/sound/soc/ti/rx51.c
@@ -19,8 +19,6 @@
#include <sound/soc.h>
#include <linux/platform_data/asoc-ti-mcbsp.h>
-#include <asm/mach-types.h>
-
#include "omap-mcbsp.h"
enum {
@@ -364,7 +362,7 @@ static int rx51_soc_probe(struct platform_device *pdev)
struct snd_soc_card *card = &rx51_sound_card;
int err;
- if (!machine_is_nokia_rx51() && !of_machine_is_compatible("nokia,omap3-n900"))
+ if (!of_machine_is_compatible("nokia,omap3-n900"))
return -ENODEV;
card->dev = &pdev->dev;
--
2.43.0
More information about the linux-arm-kernel
mailing list