X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=drivers%2Ftty%2Fserial%2F8250%2F8250_bcm2835aux.c;h=e10f1244409b344b850ffbbd4af5757a66c875f1;hb=e1a7d248279e375896cf53e9cb980032a84bf83e;hp=ecf89f13a13b6be93ec30ba314fbb1852ea084b7;hpb=0ab556c26690452fd66d8c95513fee201ceafbc0;p=deliverable%2Flinux.git diff --git a/drivers/tty/serial/8250/8250_bcm2835aux.c b/drivers/tty/serial/8250/8250_bcm2835aux.c index ecf89f13a13b..e10f1244409b 100644 --- a/drivers/tty/serial/8250/8250_bcm2835aux.c +++ b/drivers/tty/serial/8250/8250_bcm2835aux.c @@ -59,12 +59,12 @@ static int bcm2835aux_serial_probe(struct platform_device *pdev) } /* get the interrupt */ - data->uart.port.irq = platform_get_irq(pdev, 0); - if (data->uart.port.irq < 0) { - dev_err(&pdev->dev, "irq not found - %i", - data->uart.port.irq); - return data->uart.port.irq; + ret = platform_get_irq(pdev, 0); + if (ret < 0) { + dev_err(&pdev->dev, "irq not found - %i", ret); + return ret; } + data->uart.port.irq = ret; /* map the main registers */ res = platform_get_resource(pdev, IORESOURCE_MEM, 0);