diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2015-08-26 19:21:53 (GMT) |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-08-28 17:15:18 (GMT) |
commit | 3c5395b66ff69d8d568d0b9ff8b1077e044def5b (patch) | |
tree | 14e021e4a2c75fb3cd5a105b206b8b1e2aafff7d /drivers/spi/spi-fsl-espi.c | |
parent | 4178b6b1b595003cd6e04711b449797a582e44f5 (diff) | |
download | linux-3c5395b66ff69d8d568d0b9ff8b1077e044def5b.tar.xz |
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 f35eb2c..fe54e57 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); |