[PATCH 3/4] ASoC: ti: rx51: drop unnecessary machine checks

From: Sascha Hauer

Date: Wed Jun 03 2026 - 08:31:22 EST


Nokia N900 is device tree only, machine_is_nokia_rx51() always expands
to 0. Testing for of_machine_is_compatible() is unnecessary as the
N900 is the only board registering the device node necessary to get to
this point, so remove that as well. This makes inclusion of mach-types.h
unnecessary.

Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
---
sound/soc/ti/rx51.c | 5 -----
1 file changed, 5 deletions(-)

diff --git a/sound/soc/ti/rx51.c b/sound/soc/ti/rx51.c
index 7eeb12e5066c4..89338cf145358 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,9 +362,6 @@ 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"))
- return -ENODEV;
-
card->dev = &pdev->dev;

if (np) {

--
2.47.3