|
@@ -421,7 +421,7 @@ static struct uart_driver timbuart_driver = {
|
|
|
|
|
|
static int timbuart_probe(struct platform_device *dev)
|
|
static int timbuart_probe(struct platform_device *dev)
|
|
{
|
|
{
|
|
- int err;
|
|
|
|
|
|
+ int err, irq;
|
|
struct timbuart_port *uart;
|
|
struct timbuart_port *uart;
|
|
struct resource *iomem;
|
|
struct resource *iomem;
|
|
|
|
|
|
@@ -453,11 +453,12 @@ static int timbuart_probe(struct platform_device *dev)
|
|
uart->port.mapbase = iomem->start;
|
|
uart->port.mapbase = iomem->start;
|
|
uart->port.membase = NULL;
|
|
uart->port.membase = NULL;
|
|
|
|
|
|
- uart->port.irq = platform_get_irq(dev, 0);
|
|
|
|
- if (uart->port.irq < 0) {
|
|
|
|
|
|
+ irq = platform_get_irq(dev, 0);
|
|
|
|
+ if (irq < 0) {
|
|
err = -EINVAL;
|
|
err = -EINVAL;
|
|
goto err_register;
|
|
goto err_register;
|
|
}
|
|
}
|
|
|
|
+ uart->port.irq = irq;
|
|
|
|
|
|
tasklet_init(&uart->tasklet, timbuart_tasklet, (unsigned long)uart);
|
|
tasklet_init(&uart->tasklet, timbuart_tasklet, (unsigned long)uart);
|
|
|
|
|