]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spi-imx: Do not store the irq number in the private structure
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 29 Dec 2014 21:38:51 +0000 (19:38 -0200)
committerMark Brown <broonie@kernel.org>
Tue, 30 Dec 2014 11:25:06 +0000 (11:25 +0000)
commit25cbfd4a180a32564d5337ca04bd961a60c84777
tree9d2ee04da084c745f4eb487b02274bea30fdf628
parentc687bb41805a1238a38a086952014d5682516d9d
spi: spi-imx: Do not store the irq number in the private structure

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

Use a local 'irq' variable to hold the the irq number instead.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-imx.c