soc_common.c (e4da3fbfbd1de56d2367653e3823e6445e49f8a9) soc_common.c (e0d21178ceb06f5bfa81a5697f68384f74af054a)
1/*======================================================================
2
3 Common support code for the PCMCIA control functionality of
4 integrated SOCs like the SA-11x0 and PXA2xx microprocessors.
5
6 The contents of this file are subject to the Mozilla Public
7 License Version 1.1 (the "License"); you may not use this file
8 except in compliance with the License. You may obtain a copy of

--- 621 unchanged lines hidden (view full) ---

630{
631 cpufreq_unregister_notifier(&soc_pcmcia_notifier_block,
632 CPUFREQ_TRANSITION_NOTIFIER);
633}
634module_exit(soc_pcmcia_cpufreq_unregister);
635
636#endif
637
1/*======================================================================
2
3 Common support code for the PCMCIA control functionality of
4 integrated SOCs like the SA-11x0 and PXA2xx microprocessors.
5
6 The contents of this file are subject to the Mozilla Public
7 License Version 1.1 (the "License"); you may not use this file
8 except in compliance with the License. You may obtain a copy of

--- 621 unchanged lines hidden (view full) ---

630{
631 cpufreq_unregister_notifier(&soc_pcmcia_notifier_block,
632 CPUFREQ_TRANSITION_NOTIFIER);
633}
634module_exit(soc_pcmcia_cpufreq_unregister);
635
636#endif
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)
639{
640 mutex_lock(&soc_pcmcia_sockets_lock);
641 del_timer_sync(&skt->poll_timer);
642
643 pcmcia_unregister_socket(&skt->socket);
644
645 skt->ops->hw_shutdown(skt);

--- 112 unchanged lines hidden ---
648void soc_pcmcia_remove_one(struct soc_pcmcia_socket *skt)
649{
650 mutex_lock(&soc_pcmcia_sockets_lock);
651 del_timer_sync(&skt->poll_timer);
652
653 pcmcia_unregister_socket(&skt->socket);
654
655 skt->ops->hw_shutdown(skt);

--- 112 unchanged lines hidden ---