]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
OMAP2xxx EAC: update per recent IO address changes
authorPaul Walmsley <paul@pwsan.com>
Fri, 5 Sep 2008 07:37:33 +0000 (01:37 -0600)
committerTony Lindgren <tony@atomide.com>
Fri, 5 Sep 2008 18:28:22 +0000 (11:28 -0700)
Commit f228a725b975832ac5771ab2fc86d06bd694cdb3 breaks the build for this
driver; fix by using ioremap().

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Tested-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/devices.c
sound/arm/omap/eac.c

index bd49a0f152c663ef611c1a694d31cd3a908f0772..c7de03ea9309bb8109dd167ec7443514cdee7b03 100644 (file)
@@ -270,12 +270,12 @@ static inline void omap_init_mcspi(void) {}
 
 #ifdef CONFIG_SND_OMAP24XX_EAC
 
-#define OMAP2_EAC_BASE                 0x48090000
+#define OMAP2_EAC_BASE                 (L4_24XX_BASE + 0x90000)
 
 static struct resource omap2_eac_resources[] = {
        {
                .start          = OMAP2_EAC_BASE,
-               .end            = OMAP2_EAC_BASE + 0x109,
+               .end            = OMAP2_EAC_BASE + 0xfff,
                .flags          = IORESOURCE_MEM,
        },
 };
index 9fe8d7435c1391c0913202bb47f0872a9e18113e..47a95e217f357bae0fc59251d71ee8d408764da2 100644 (file)
@@ -707,7 +707,7 @@ static int __devinit eac_probe(struct platform_device *pdev)
                err = -ENODEV;
                goto err1;
        }
-       eac->base = (void __iomem *)io_p2v(res->start);
+       eac->base = ioremap(res->start, res->end - res->start + 1);
        eac->pdata = pdata;
 
        /* pre-initialize EAC hw */
@@ -771,6 +771,8 @@ static int __devexit eac_remove(struct platform_device *pdev)
        eac_disable_clocks(eac);
        eac_put_clocks(eac);
 
+       iounmap(eac->base);
+
        platform_set_drvdata(pdev, NULL);
 
        return 0;