aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/soc_common.c
diff options
context:
space:
mode:
authorRussell King - ARM Linux <linux@arm.linux.org.uk>2009-03-26 18:21:18 -0400
committerDominik Brodowski <linux@dominikbrodowski.net>2009-11-09 02:30:10 -0500
commitbe85458edce0f165cff62622f5e73b1d17b1e228 (patch)
tree01e3c995abab8f3533d2075d99f5a4a2d95e1948 /drivers/pcmcia/soc_common.c
parent097e296d6175881eba7244de7222de61e9569911 (diff)
PCMCIA: soc_common: push socket removal down to SoC specific support
Mechanically transplant the removal code from soc_common into each SoC specific base support file, thereby allowing soc_common_drv_pcmcia_remove to be removed. No other changes. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/soc_common.c')
-rw-r--r--drivers/pcmcia/soc_common.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/pcmcia/soc_common.c b/drivers/pcmcia/soc_common.c
index 9bfa74a6d8ff..fb5377d17af4 100644
--- a/drivers/pcmcia/soc_common.c
+++ b/drivers/pcmcia/soc_common.c
@@ -778,22 +778,6 @@ int soc_common_drv_pcmcia_probe(struct device *dev, struct pcmcia_low_level *ops
778} 778}
779EXPORT_SYMBOL(soc_common_drv_pcmcia_probe); 779EXPORT_SYMBOL(soc_common_drv_pcmcia_probe);
780 780
781int soc_common_drv_pcmcia_remove(struct device *dev)
782{
783 struct skt_dev_info *sinfo = dev_get_drvdata(dev);
784 int i;
785
786 dev_set_drvdata(dev, NULL);
787
788 for (i = 0; i < sinfo->nskt; i++)
789 soc_pcmcia_remove_one(&sinfo->skt[i]);
790
791 kfree(sinfo);
792
793 return 0;
794}
795EXPORT_SYMBOL(soc_common_drv_pcmcia_remove);
796
797MODULE_AUTHOR("John Dorsey <john+@cs.cmu.edu>"); 781MODULE_AUTHOR("John Dorsey <john+@cs.cmu.edu>");
798MODULE_DESCRIPTION("Linux PCMCIA Card Services: Common SoC support"); 782MODULE_DESCRIPTION("Linux PCMCIA Card Services: Common SoC support");
799MODULE_LICENSE("Dual MPL/GPL"); 783MODULE_LICENSE("Dual MPL/GPL");