diff options
-rw-r--r-- | drivers/tty/serial/tegra_hsuart.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/tty/serial/tegra_hsuart.c b/drivers/tty/serial/tegra_hsuart.c index fd68004a2765..4169cbcbf299 100644 --- a/drivers/tty/serial/tegra_hsuart.c +++ b/drivers/tty/serial/tegra_hsuart.c @@ -43,6 +43,8 @@ #include <mach/dma.h> #include <mach/clk.h> +#define TEGRA_UART_TYPE "TEGRA_UART" + #define TX_EMPTY_STATUS (UART_LSR_TEMT | UART_LSR_THRE) #define BYTES_TO_ALIGN(x) ((unsigned long)(ALIGN((x), sizeof(u32))) - \ @@ -1368,7 +1370,7 @@ static void tegra_pm(struct uart_port *u, unsigned int state, static const char *tegra_type(struct uart_port *u) { - return 0; + return TEGRA_UART_TYPE; } static struct uart_ops tegra_uart_ops = { @@ -1421,7 +1423,7 @@ static int __init tegra_uart_probe(struct platform_device *pdev) platform_set_drvdata(pdev, u); u->line = pdev->id; u->ops = &tegra_uart_ops; - u->type = ~PORT_UNKNOWN; + u->type = PORT_TEGRA; u->fifosize = 32; resource = platform_get_resource(pdev, IORESOURCE_MEM, 0); @@ -1436,6 +1438,7 @@ static int __init tegra_uart_probe(struct platform_device *pdev) ret = -ENOMEM; goto fail; } + u->iotype = UPIO_MEM32; u->irq = platform_get_irq(pdev, 0); if (unlikely(u->irq < 0)) { |