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>
This commit is contained in:

committed by
Dominik Brodowski

parent
097e296d61
commit
be85458edc
@@ -778,22 +778,6 @@ int soc_common_drv_pcmcia_probe(struct device *dev, struct pcmcia_low_level *ops
|
||||
}
|
||||
EXPORT_SYMBOL(soc_common_drv_pcmcia_probe);
|
||||
|
||||
int soc_common_drv_pcmcia_remove(struct device *dev)
|
||||
{
|
||||
struct skt_dev_info *sinfo = dev_get_drvdata(dev);
|
||||
int i;
|
||||
|
||||
dev_set_drvdata(dev, NULL);
|
||||
|
||||
for (i = 0; i < sinfo->nskt; i++)
|
||||
soc_pcmcia_remove_one(&sinfo->skt[i]);
|
||||
|
||||
kfree(sinfo);
|
||||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(soc_common_drv_pcmcia_remove);
|
||||
|
||||
MODULE_AUTHOR("John Dorsey <john+@cs.cmu.edu>");
|
||||
MODULE_DESCRIPTION("Linux PCMCIA Card Services: Common SoC support");
|
||||
MODULE_LICENSE("Dual MPL/GPL");
|
||||
|
Reference in New Issue
Block a user