aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-fsl-lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/spi-fsl-lib.c')
-rw-r--r--drivers/spi/spi-fsl-lib.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/spi/spi-fsl-lib.c b/drivers/spi/spi-fsl-lib.c
index cb35d2f0d0e6..1e43412cd9f8 100644
--- a/drivers/spi/spi-fsl-lib.c
+++ b/drivers/spi/spi-fsl-lib.c
@@ -114,25 +114,6 @@ void mpc8xxx_spi_probe(struct device *dev, struct resource *mem,
114} 114}
115EXPORT_SYMBOL_GPL(mpc8xxx_spi_probe); 115EXPORT_SYMBOL_GPL(mpc8xxx_spi_probe);
116 116
117int 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 spi_unregister_master(master);
126
127 free_irq(mpc8xxx_spi->irq, mpc8xxx_spi);
128
129 if (mpc8xxx_spi->spi_remove)
130 mpc8xxx_spi->spi_remove(mpc8xxx_spi);
131
132 return 0;
133}
134EXPORT_SYMBOL_GPL(mpc8xxx_spi_remove);
135
136int of_mpc8xxx_spi_probe(struct platform_device *ofdev) 117int of_mpc8xxx_spi_probe(struct platform_device *ofdev)
137{ 118{
138 struct device *dev = &ofdev->dev; 119 struct device *dev = &ofdev->dev;