]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/bluetooth/brf6150.c
ARM: OMAP: Remove io_p2v, use ioremap and XXX_IO_ADDRESS
[linux-2.6-omap-h63xx.git] / drivers / bluetooth / brf6150.c
index f47b22fd7d0aad6562b69a8d8e1fae525a71d302..476cc6554b9e80c5d2085730f7f9993e5ea7b150 100644 (file)
@@ -952,17 +952,26 @@ static int __init brf6150_init(void)
        case 1:
                irq = INT_UART1;
                info->uart_ck = clk_get(NULL, "uart1_ck");
-               info->uart_base = io_p2v((unsigned long)OMAP_UART1_BASE);
+               /* FIXME: Use platform_get_resource for the port */
+               info->uart_base = ioremap(OMAP_UART1_BASE, 0x16);
+               if (!info->uart_base)
+                       goto cleanup;
                break;
        case 2:
                irq = INT_UART2;
                info->uart_ck = clk_get(NULL, "uart2_ck");
-               info->uart_base = io_p2v((unsigned long)OMAP_UART2_BASE);
+               /* FIXME: Use platform_get_resource for the port */
+               info->uart_base = ioremap(OMAP_UART2_BASE, 0x16);
+               if (!info->uart_base)
+                       goto cleanup;
                break;
        case 3:
                irq = INT_UART3;
                info->uart_ck = clk_get(NULL, "uart3_ck");
-               info->uart_base = io_p2v((unsigned long)OMAP_UART3_BASE);
+               /* FIXME: Use platform_get_resource for the port */
+               info->uart_base = ioremap(OMAP_UART3_BASE, 0x16);
+               if (!info->uart_base)
+                       goto cleanup;
                break;
        default:
                printk(KERN_ERR "No uart defined\n");