diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-08-15 02:38:38 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-09-29 11:20:25 -0400 |
commit | 2262054e74b4b26ed56a8535c1259f6c6c2862a4 (patch) | |
tree | fbcd0aa7879408b9676c2df6c7514e5d7428880a /drivers/net/wireless/libertas | |
parent | 06b3a1d12f41b592972643f8b84015d6c03dc576 (diff) |
pcmcia: remove obsolete and wrong comments
What's worse than no comment? A wrong comment.
Several PCMCIA device drivers contained the same comments, which
were based on how the PCMCIA subsystem worked in the old days of 2.4.,
and which were originally part of a "dummy_cs" driver. These comments
no longer matched at all what is happening now, and therefore should
be removed.
Tested-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/net/wireless/libertas')
-rw-r--r-- | drivers/net/wireless/libertas/if_cs.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/drivers/net/wireless/libertas/if_cs.c b/drivers/net/wireless/libertas/if_cs.c index c2bd2f0304bb..ff1280f41336 100644 --- a/drivers/net/wireless/libertas/if_cs.c +++ b/drivers/net/wireless/libertas/if_cs.c | |||
@@ -760,15 +760,6 @@ static int if_cs_host_to_card(struct lbs_private *priv, | |||
760 | } | 760 | } |
761 | 761 | ||
762 | 762 | ||
763 | /********************************************************************/ | ||
764 | /* Card Services */ | ||
765 | /********************************************************************/ | ||
766 | |||
767 | /* | ||
768 | * After a card is removed, if_cs_release() will unregister the | ||
769 | * device, and release the PCMCIA configuration. If the device is | ||
770 | * still open, this will be postponed until it is closed. | ||
771 | */ | ||
772 | static void if_cs_release(struct pcmcia_device *p_dev) | 763 | static void if_cs_release(struct pcmcia_device *p_dev) |
773 | { | 764 | { |
774 | struct if_cs_card *card = p_dev->priv; | 765 | struct if_cs_card *card = p_dev->priv; |
@@ -784,16 +775,6 @@ static void if_cs_release(struct pcmcia_device *p_dev) | |||
784 | } | 775 | } |
785 | 776 | ||
786 | 777 | ||
787 | /* | ||
788 | * This creates an "instance" of the driver, allocating local data | ||
789 | * structures for one device. The device is registered with Card | ||
790 | * Services. | ||
791 | * | ||
792 | * The dev_link structure is initialized, but we don't actually | ||
793 | * configure the card at this point -- we wait until we receive a card | ||
794 | * insertion event. | ||
795 | */ | ||
796 | |||
797 | static int if_cs_ioprobe(struct pcmcia_device *p_dev, void *priv_data) | 778 | static int if_cs_ioprobe(struct pcmcia_device *p_dev, void *priv_data) |
798 | { | 779 | { |
799 | p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; | 780 | p_dev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; |
@@ -849,11 +830,6 @@ static int if_cs_probe(struct pcmcia_device *p_dev) | |||
849 | goto out1; | 830 | goto out1; |
850 | } | 831 | } |
851 | 832 | ||
852 | /* | ||
853 | * This actually configures the PCMCIA socket -- setting up | ||
854 | * the I/O windows and the interrupt mapping, and putting the | ||
855 | * card and host interface into "Memory and IO" mode. | ||
856 | */ | ||
857 | ret = pcmcia_enable_device(p_dev); | 833 | ret = pcmcia_enable_device(p_dev); |
858 | if (ret) { | 834 | if (ret) { |
859 | lbs_pr_err("error in pcmcia_enable_device\n"); | 835 | lbs_pr_err("error in pcmcia_enable_device\n"); |
@@ -950,12 +926,6 @@ out: | |||
950 | } | 926 | } |
951 | 927 | ||
952 | 928 | ||
953 | /* | ||
954 | * This deletes a driver "instance". The device is de-registered with | ||
955 | * Card Services. If it has been released, all local data structures | ||
956 | * are freed. Otherwise, the structures will be freed when the device | ||
957 | * is released. | ||
958 | */ | ||
959 | static void if_cs_detach(struct pcmcia_device *p_dev) | 929 | static void if_cs_detach(struct pcmcia_device *p_dev) |
960 | { | 930 | { |
961 | struct if_cs_card *card = p_dev->priv; | 931 | struct if_cs_card *card = p_dev->priv; |