]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/misc/sti/sti.c
Add SDTI device for OMAP3 and unify address definitions for OMAP1 and OMAP2.
[linux-2.6-omap-h63xx.git] / drivers / misc / sti / sti.c
index e828860f037e67dc2cc340efe0a8c387f7f905a9..1140fed048fedb9f636f8940a3de4d93d0bbdb08 100644 (file)
@@ -356,7 +356,7 @@ static int __devinit sti_probe(struct platform_device *pdev)
        if (unlikely(ret != 0))
                goto err;
 
-       sti_base = res->start;
+       sti_base = io_p2v(res->start);
 
        /*
         * OMAP 16xx keeps channels in a relatively sane location,
@@ -364,7 +364,7 @@ static int __devinit sti_probe(struct platform_device *pdev)
         * remapped.
         */
        if (cpu_is_omap16xx())
-               sti_channel_base = cres->start;
+               sti_channel_base = io_p2v(cres->start);
        else if (cpu_is_omap24xx()) {
                unsigned int size = cres->end - cres->start;