|
@@ -238,6 +238,17 @@ static const struct snd_soc_component_driver pxa_ac97_component = {
|
|
|
.name = "pxa-ac97",
|
|
|
};
|
|
|
|
|
|
+#ifdef CONFIG_OF
|
|
|
+static const struct of_device_id pxa2xx_ac97_dt_ids[] = {
|
|
|
+ { .compatible = "marvell,pxa250-ac97", },
|
|
|
+ { .compatible = "marvell,pxa270-ac97", },
|
|
|
+ { .compatible = "marvell,pxa300-ac97", },
|
|
|
+ { }
|
|
|
+};
|
|
|
+MODULE_DEVICE_TABLE(of, pxa2xx_ac97_dt_ids);
|
|
|
+
|
|
|
+#endif
|
|
|
+
|
|
|
static int pxa2xx_ac97_dev_probe(struct platform_device *pdev)
|
|
|
{
|
|
|
int ret;
|
|
@@ -296,6 +307,7 @@ static struct platform_driver pxa2xx_ac97_driver = {
|
|
|
#ifdef CONFIG_PM_SLEEP
|
|
|
.pm = &pxa2xx_ac97_pm_ops,
|
|
|
#endif
|
|
|
+ .of_match_table = of_match_ptr(pxa2xx_ac97_dt_ids),
|
|
|
},
|
|
|
};
|
|
|
|