ARM: Davinci: Remove references to davinci pcm
authorHebbar, Gururaja <gururaja.hebbar@ti.com>
Mon, 27 Aug 2012 13:26:40 +0000 (18:56 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 27 Aug 2012 18:12:08 +0000 (11:12 -0700)
Since davinci-pcm is no more a platform_driver but helper to register
"platform" pcm driver, remove  davinci-pcm device registration

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
arch/arm/mach-davinci/devices-da8xx.c
arch/arm/mach-davinci/devices.c

index 783eab6845c4ea6d56e0a9575b9e9cb89e5eaf84..4735d64fd6f223cca02a10021c6ed702437bc397 100644 (file)
@@ -505,15 +505,8 @@ static struct platform_device da850_mcasp_device = {
        .resource       = da850_mcasp_resources,
 };
 
-static struct platform_device davinci_pcm_device = {
-       .name   = "davinci-pcm-audio",
-       .id     = -1,
-};
-
 void __init da8xx_register_mcasp(int id, struct snd_platform_data *pdata)
 {
-       platform_device_register(&davinci_pcm_device);
-
        /* DA830/OMAP-L137 has 3 instances of McASP */
        if (cpu_is_davinci_da830() && id == 1) {
                da830_mcasp1_device.dev.platform_data = pdata;
index d2f9666284a70868dcfe42346657c56fa82f9f9f..70056fb8cc06595c4472a245b7f8bae41e4ac1ab 100644 (file)
@@ -313,16 +313,6 @@ static void davinci_init_wdt(void)
 
 /*-------------------------------------------------------------------------*/
 
-static struct platform_device davinci_pcm_device = {
-       .name           = "davinci-pcm-audio",
-       .id             = -1,
-};
-
-static void davinci_init_pcm(void)
-{
-       platform_device_register(&davinci_pcm_device);
-}
-
 /*-------------------------------------------------------------------------*/
 
 struct davinci_timer_instance davinci_timer_instance[2] = {
@@ -345,7 +335,6 @@ static int __init davinci_init_devices(void)
        /* please keep these calls, and their implementations above,
         * in alphabetical order so they're easier to sort through.
         */
-       davinci_init_pcm();
        davinci_init_wdt();
 
        return 0;