@@ -257,9 +257,6 @@ void mop500_of_msp_init(struct device *parent)
"could not get MSP1 idlestate\n");
}
}
-
- pr_info("%s: Register platform-device 'ux500-pcm'\n", __func__);
- platform_device_register(&ux500_pcm);
}
void mop500_msp_init(struct device *parent)
@@ -304,10 +304,16 @@ static int __devinit ux500_pcm_drv_remove(struct platform_device *pdev)
return 0;
}
+static const struct of_device_id ux500_pcm_match[] = {
+ { .compatible = "stericsson,ux500-pcm", },
+ {},
+};
+
static struct platform_driver ux500_pcm_driver = {
.driver = {
.name = "ux500-pcm",
.owner = THIS_MODULE,
+ .of_match_table = ux500_pcm_match,
},
.probe = ux500_pcm_drv_probe,
Here we pass platform registration from platform code over to Device Tree, when DT is enabled. Signed-off-by: Lee Jones <lee.jones@linaro.org> --- arch/arm/mach-ux500/board-mop500-msp.c | 3 --- sound/soc/ux500/ux500_pcm.c | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-)