Commit cdb2f77c authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Mark Brown

spi: fsl-espi: remove usage of mpc8xxx_spi->irq

There's no need to access mpc8xxx_spi->irq, we can use function
parameter irq directly.
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent e3ce4f44
...@@ -615,8 +615,8 @@ static int fsl_espi_probe(struct device *dev, struct resource *mem, ...@@ -615,8 +615,8 @@ static int fsl_espi_probe(struct device *dev, struct resource *mem,
} }
/* Register for SPI Interrupt */ /* Register for SPI Interrupt */
ret = devm_request_irq(dev, mpc8xxx_spi->irq, fsl_espi_irq, ret = devm_request_irq(dev, irq, fsl_espi_irq, 0, "fsl_espi",
0, "fsl_espi", mpc8xxx_spi); mpc8xxx_spi);
if (ret) if (ret)
goto err_probe; goto err_probe;
...@@ -669,8 +669,7 @@ static int fsl_espi_probe(struct device *dev, struct resource *mem, ...@@ -669,8 +669,7 @@ static int fsl_espi_probe(struct device *dev, struct resource *mem,
if (ret < 0) if (ret < 0)
goto err_pm; goto err_pm;
dev_info(dev, "at 0x%p (irq = %d)\n", mpc8xxx_spi->reg_base, dev_info(dev, "at 0x%p (irq = %u)\n", mpc8xxx_spi->reg_base, irq);
mpc8xxx_spi->irq);
pm_runtime_mark_last_busy(dev); pm_runtime_mark_last_busy(dev);
pm_runtime_put_autosuspend(dev); pm_runtime_put_autosuspend(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment