serial: mxs-auart: Remove irq from private structure
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 14 Jan 2015 16:39:07 +0000 (14:39 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Feb 2015 18:11:25 +0000 (10:11 -0800)
commit6960cd465e553c8c0f9c26663b32bf3f3cd6a298
treeba1ca5a950ad62f054f17018f0597f0e9b03a271
parentc0b18db0562738eee578b7cd2291bd2851f6b5f8
serial: mxs-auart: Remove irq from private structure

The irq number is only used inside the probe function, so there is no need
to keep it in the private mxs_auart_port structure.

Use a local 'irq' variable for storing the irq number instead.

Also make its type of 'int' as platform_get_irq() may fail and return a
negative number.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mxs-auart.c