aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/soc_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pcmcia/soc_common.c')
-rw-r--r--drivers/pcmcia/soc_common.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/pcmcia/soc_common.c b/drivers/pcmcia/soc_common.c
index a0a9c2aa8d78..84d90d5220ce 100644
--- a/drivers/pcmcia/soc_common.c
+++ b/drivers/pcmcia/soc_common.c
@@ -635,6 +635,16 @@ module_exit(soc_pcmcia_cpufreq_unregister);
635 635
636#endif 636#endif
637 637
638void soc_pcmcia_init_one(struct soc_pcmcia_socket *skt,
639 struct pcmcia_low_level *ops, struct device *dev)
640{
641 skt->ops = ops;
642 skt->socket.owner = ops->owner;
643 skt->socket.dev.parent = dev;
644 skt->socket.pci_irq = NO_IRQ;
645}
646EXPORT_SYMBOL(soc_pcmcia_init_one);
647
638void soc_pcmcia_remove_one(struct soc_pcmcia_socket *skt) 648void soc_pcmcia_remove_one(struct soc_pcmcia_socket *skt)
639{ 649{
640 mutex_lock(&soc_pcmcia_sockets_lock); 650 mutex_lock(&soc_pcmcia_sockets_lock);