sound: soc: ti: rx51: remove stale reference to machine_is_nokia_rx51()
Subsystems (4)
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
@@ -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
Hi
Quoted 6 lines · Ethan Nelson-Moore
The rx51 driver relies on the
machine_is_nokia_rx51()macro, which is always false since commit9b7141d01a76("ARM: OMAP2+: Drop legacy board file for n900"). Its presence prevents the removal of boards no longer present in the kernel fromarch/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:
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:
Tested-by Jarkko Nikula <[email protected]>
Okay. I'll resend the patch with your tag and a fixed commit message after the 24-hour deadline.
Ethan
Mark Brown
maintainerQuoted 6 lines · Ethan Nelson-Moore
The rx51 driver relies on the
machine_is_nokia_rx51()macro, which is always false since commit9b7141d01a76("ARM: OMAP2+: Drop legacy board file for n900"). Its presence prevents the removal of boards no longer present in the kernel fromarch/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.