diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2015-08-26 21:21:50 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-08-28 18:15:18 +0100 |
commit | 4178b6b1b595003cd6e04711b449797a582e44f5 (patch) | |
tree | e762d94a809abe67697f723bd98f5a9447858d93 /drivers/spi/spi-fsl-lib.c | |
parent | bc0195aad0daa2ad5b0d76cce22b167bc3435590 (diff) | |
download | blackbird-op-linux-4178b6b1b595003cd6e04711b449797a582e44f5.tar.gz blackbird-op-linux-4178b6b1b595003cd6e04711b449797a582e44f5.zip |
spi: fsl-(e)spi: migrate to using devm_ functions to simplify cleanup
Migrate fsl-espi and fsl-spi to using the managed devm_ functions
for resource handling. This simplifies the cleanup.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-fsl-lib.c')
-rw-r--r-- | drivers/spi/spi-fsl-lib.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/spi/spi-fsl-lib.c b/drivers/spi/spi-fsl-lib.c index cb35d2f0d0e6..e50fd066af06 100644 --- a/drivers/spi/spi-fsl-lib.c +++ b/drivers/spi/spi-fsl-lib.c @@ -122,10 +122,6 @@ int mpc8xxx_spi_remove(struct device *dev) master = dev_get_drvdata(dev); mpc8xxx_spi = spi_master_get_devdata(master); - spi_unregister_master(master); - - free_irq(mpc8xxx_spi->irq, mpc8xxx_spi); - if (mpc8xxx_spi->spi_remove) mpc8xxx_spi->spi_remove(mpc8xxx_spi); |