diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2015-08-26 15:21:53 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-08-28 13:15:18 -0400 |
commit | 3c5395b66ff69d8d568d0b9ff8b1077e044def5b (patch) | |
tree | 14e021e4a2c75fb3cd5a105b206b8b1e2aafff7d /drivers/spi/spi-fsl-lib.c | |
parent | 4178b6b1b595003cd6e04711b449797a582e44f5 (diff) |
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.c | 15 |
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, | |||
114 | } | 114 | } |
115 | EXPORT_SYMBOL_GPL(mpc8xxx_spi_probe); | 115 | EXPORT_SYMBOL_GPL(mpc8xxx_spi_probe); |
116 | 116 | ||
117 | int mpc8xxx_spi_remove(struct device *dev) | ||
118 | { | ||
119 | struct mpc8xxx_spi *mpc8xxx_spi; | ||
120 | struct spi_master *master; | ||
121 | |||
122 | master = dev_get_drvdata(dev); | ||
123 | mpc8xxx_spi = spi_master_get_devdata(master); | ||
124 | |||
125 | if (mpc8xxx_spi->spi_remove) | ||
126 | mpc8xxx_spi->spi_remove(mpc8xxx_spi); | ||
127 | |||
128 | return 0; | ||
129 | } | ||
130 | EXPORT_SYMBOL_GPL(mpc8xxx_spi_remove); | ||
131 | |||
132 | int of_mpc8xxx_spi_probe(struct platform_device *ofdev) | 117 | int of_mpc8xxx_spi_probe(struct platform_device *ofdev) |
133 | { | 118 | { |
134 | struct device *dev = &ofdev->dev; | 119 | struct device *dev = &ofdev->dev; |