aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/pcmcia/nsp_cs.c
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2010-08-15 02:38:38 -0400
committerDominik Brodowski <linux@dominikbrodowski.net>2010-09-29 11:20:25 -0400
commit2262054e74b4b26ed56a8535c1259f6c6c2862a4 (patch)
treefbcd0aa7879408b9676c2df6c7514e5d7428880a /drivers/scsi/pcmcia/nsp_cs.c
parent06b3a1d12f41b592972643f8b84015d6c03dc576 (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/scsi/pcmcia/nsp_cs.c')
-rw-r--r--drivers/scsi/pcmcia/nsp_cs.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/drivers/scsi/pcmcia/nsp_cs.c b/drivers/scsi/pcmcia/nsp_cs.c
index 07b73ca2a7e0..9326c2c14880 100644
--- a/drivers/scsi/pcmcia/nsp_cs.c
+++ b/drivers/scsi/pcmcia/nsp_cs.c
@@ -1530,15 +1530,6 @@ static int nsp_eh_host_reset(struct scsi_cmnd *SCpnt)
1530 PCMCIA functions 1530 PCMCIA functions
1531**********************************************************************/ 1531**********************************************************************/
1532 1532
1533/*======================================================================
1534 nsp_cs_attach() creates an "instance" of the driver, allocating
1535 local data structures for one device. The device is registered
1536 with Card Services.
1537
1538 The dev_link structure is initialized, but we don't actually
1539 configure the card at this point -- we wait until we receive a
1540 card insertion event.
1541======================================================================*/
1542static int nsp_cs_probe(struct pcmcia_device *link) 1533static int nsp_cs_probe(struct pcmcia_device *link)
1543{ 1534{
1544 scsi_info_t *info; 1535 scsi_info_t *info;
@@ -1563,12 +1554,6 @@ static int nsp_cs_probe(struct pcmcia_device *link)
1563} /* nsp_cs_attach */ 1554} /* nsp_cs_attach */
1564 1555
1565 1556
1566/*======================================================================
1567 This deletes a driver "instance". The device is de-registered
1568 with Card Services. If it has been released, all local data
1569 structures are freed. Otherwise, the structures will be freed
1570 when the device is released.
1571======================================================================*/
1572static void nsp_cs_detach(struct pcmcia_device *link) 1557static void nsp_cs_detach(struct pcmcia_device *link)
1573{ 1558{
1574 nsp_dbg(NSP_DEBUG_INIT, "in, link=0x%p", link); 1559 nsp_dbg(NSP_DEBUG_INIT, "in, link=0x%p", link);
@@ -1581,12 +1566,6 @@ static void nsp_cs_detach(struct pcmcia_device *link)
1581} /* nsp_cs_detach */ 1566} /* nsp_cs_detach */
1582 1567
1583 1568
1584/*======================================================================
1585 nsp_cs_config() is scheduled to run after a CARD_INSERTION event
1586 is received, to configure the PCMCIA socket, and to make the
1587 ethernet device available to the system.
1588======================================================================*/
1589
1590static int nsp_cs_config_check(struct pcmcia_device *p_dev, void *priv_data) 1569static int nsp_cs_config_check(struct pcmcia_device *p_dev, void *priv_data)
1591{ 1570{
1592 nsp_hw_data *data = priv_data; 1571 nsp_hw_data *data = priv_data;
@@ -1697,11 +1676,6 @@ static int nsp_cs_config(struct pcmcia_device *link)
1697} /* nsp_cs_config */ 1676} /* nsp_cs_config */
1698 1677
1699 1678
1700/*======================================================================
1701 After a card is removed, nsp_cs_release() will unregister the net
1702 device, and release the PCMCIA configuration. If the device is
1703 still open, this will be postponed until it is closed.
1704======================================================================*/
1705static void nsp_cs_release(struct pcmcia_device *link) 1679static void nsp_cs_release(struct pcmcia_device *link)
1706{ 1680{
1707 scsi_info_t *info = link->priv; 1681 scsi_info_t *info = link->priv;