summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-fsl-lib.c
diff options
context:
space:
mode:
authorHeiner Kallweit2015-08-26 21:21:53 +0200
committerMark Brown2015-08-28 19:15:18 +0200
commit3c5395b66ff69d8d568d0b9ff8b1077e044def5b (patch)
tree14e021e4a2c75fb3cd5a105b206b8b1e2aafff7d /drivers/spi/spi-fsl-lib.c
parentspi: fsl-(e)spi: migrate to using devm_ functions to simplify cleanup (diff)
downloadkernel-qcow2-linux-3c5395b66ff69d8d568d0b9ff8b1077e044def5b.tar.gz
kernel-qcow2-linux-3c5395b66ff69d8d568d0b9ff8b1077e044def5b.tar.xz
kernel-qcow2-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-lib.c')
-rw-r--r--drivers/spi/spi-fsl-lib.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/spi/spi-fsl-lib.c b/drivers/spi/spi-fsl-lib.c
index e50fd066af06..1e43412cd9f8 100644
--- a/drivers/spi/spi-fsl-lib.c
+++ b/drivers/spi/spi-fsl-lib.c
@@ -114,21 +114,6 @@ void mpc8xxx_spi_probe(struct device *dev, struct resource *mem,
}
EXPORT_SYMBOL_GPL(mpc8xxx_spi_probe);
-int mpc8xxx_spi_remove(struct device *dev)
-{
- struct mpc8xxx_spi *mpc8xxx_spi;
- struct spi_master *master;
-
- master = dev_get_drvdata(dev);
- mpc8xxx_spi = spi_master_get_devdata(master);
-
- if (mpc8xxx_spi->spi_remove)
- mpc8xxx_spi->spi_remove(mpc8xxx_spi);
-
- return 0;
-}
-EXPORT_SYMBOL_GPL(mpc8xxx_spi_remove);
-
int of_mpc8xxx_spi_probe(struct platform_device *ofdev)
{
struct device *dev = &ofdev->dev;