diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2015-08-26 21:21:53 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-08-28 19:15:18 +0200 |
commit | 3c5395b66ff69d8d568d0b9ff8b1077e044def5b (patch) | |
tree | 14e021e4a2c75fb3cd5a105b206b8b1e2aafff7d /drivers/spi/spi-fsl-espi.c | |
parent | spi: fsl-(e)spi: migrate to using devm_ functions to simplify cleanup (diff) | |
download | linux-3c5395b66ff69d8d568d0b9ff8b1077e044def5b.tar.xz linux-3c5395b66ff69d8d568d0b9ff8b1077e044def5b.zip |
spi: fsl-(e)spi: simplify cleanup code
Now that most cleanup is done automatically the remove functions
can be significantly simplified.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-fsl-espi.c')
-rw-r--r-- | drivers/spi/spi-fsl-espi.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c index f35eb2c46782..fe54e5788245 100644 --- a/drivers/spi/spi-fsl-espi.c +++ b/drivers/spi/spi-fsl-espi.c @@ -797,11 +797,6 @@ err: return ret; } -static int of_fsl_espi_remove(struct platform_device *dev) -{ - return mpc8xxx_spi_remove(&dev->dev); -} - #ifdef CONFIG_PM_SLEEP static int of_fsl_espi_suspend(struct device *dev) { @@ -865,7 +860,6 @@ static struct platform_driver fsl_espi_driver = { .pm = &espi_pm, }, .probe = of_fsl_espi_probe, - .remove = of_fsl_espi_remove, }; module_platform_driver(fsl_espi_driver); |