[Letux-kernel] [Internal RFC 03/16] ASoC: omap: omap3pandora: Fix module load for multi SBC kernel
H. Nikolaus Schaller
hns at goldelico.com
Wed Sep 7 20:01:42 CEST 2022
From: Stefan Leichter <sle85276 at gmx.de>
Detect pandora variants through machine compatible.
Signed-off-by: Stefan Leichter <sle85276 at gmx.de>
Signed-off-by: H. Nikolaus Schaller <hns at goldelico.com>
---
sound/soc/ti/omap3pandora.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sound/soc/ti/omap3pandora.c b/sound/soc/ti/omap3pandora.c
index a287e9747c2a1..21fa63f88cecf 100644
--- a/sound/soc/ti/omap3pandora.c
+++ b/sound/soc/ti/omap3pandora.c
@@ -224,7 +224,9 @@ static int __init omap3pandora_soc_init(void)
{
int ret;
- if (!machine_is_omap3_pandora())
+ if (!machine_is_omap3_pandora() &&
+ !of_machine_is_compatible("openpandora,omap3-pandora-600mhz") &&
+ !of_machine_is_compatible("openpandora,omap3-pandora-1ghz"))
return -ENODEV;
pr_info("OMAP3 Pandora SoC init\n");
--
2.33.0
More information about the Letux-kernel
mailing list