Skip to contentSkip to conversation

sound: soc: ti: rx51: remove stale reference to machine_is_nokia_rx51()

PATCH Superseded Ethan Nelson-Moore 3 participants 4 messages May 9 – May 10

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sound: soc: ti: rx51: remove stale reference to machine_is_nokia_rx51()

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.

---
 sound/soc/ti/rx51.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
sound/soc/ti/rx51.c +1 -3
index 7eeb12e5066c..cfc23e0838c2 100644
@@ -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;
Signature · 1 line
2.43.0
maintainer Tested-by on v1 1/1
#1 lore raw

Hi

Quoted 6 lines · Ethan Nelson-Moore

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.

Not fully true since machine_is_nokia_rx51() still returns true on RX51 (N900) and driver loads successfully both before and after your patch. But true you may remove this test so please update the commit log and you may add my tested by tag:

#2 lore raw

Hi, Jarkko,

Quoted 2 lines · Jarkko Nikula

Not fully true since machine_is_nokia_rx51() still returns true on RX51 (N900) and driver loads successfully both before and after your patch.

Thank you for testing the patch and pointing this out. I didn't know the kernel still considered the machine ID passed by the bootloader when booting with FDT.

Quoted 4 lines

But true you may remove this test so please update the commit log and you may add my tested by tag:

Okay. I'll resend the patch with your tag and a fixed commit message after the 24-hour deadline.

Ethan

maintainer
#3 lore raw
In reply to Ethan Nelson-Moore
Quoted 6 lines · Ethan Nelson-Moore

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.

Please submit patches using subject lines reflecting the style for the subsystem, this makes it easier for people to identify relevant patches. Look at what existing commits in the area you're changing are doing and make sure your subject lines visually resemble what they're doing. There's no need to resubmit to fix this alone.