aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/pcmciamtd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/maps/pcmciamtd.c')
-rw-r--r--drivers/mtd/maps/pcmciamtd.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/mtd/maps/pcmciamtd.c b/drivers/mtd/maps/pcmciamtd.c
index 5df89e742a33..57a1acfe22c4 100644
--- a/drivers/mtd/maps/pcmciamtd.c
+++ b/drivers/mtd/maps/pcmciamtd.c
@@ -321,11 +321,6 @@ static void pcmciamtd_set_vpp(struct map_info *map, int on)
321} 321}
322 322
323 323
324/* After a card is removed, pcmciamtd_release() will unregister the
325 * device, and release the PCMCIA configuration. If the device is
326 * still open, this will be postponed until it is closed.
327 */
328
329static void pcmciamtd_release(struct pcmcia_device *link) 324static void pcmciamtd_release(struct pcmcia_device *link)
330{ 325{
331 struct pcmciamtd_dev *dev = link->priv; 326 struct pcmciamtd_dev *dev = link->priv;
@@ -475,11 +470,6 @@ static void card_settings(struct pcmciamtd_dev *dev, struct pcmcia_device *p_dev
475} 470}
476 471
477 472
478/* pcmciamtd_config() is scheduled to run after a CARD_INSERTION event
479 * is received, to configure the PCMCIA socket, and to make the
480 * MTD device available to the system.
481 */
482
483static int pcmciamtd_config(struct pcmcia_device *link) 473static int pcmciamtd_config(struct pcmcia_device *link)
484{ 474{
485 struct pcmciamtd_dev *dev = link->priv; 475 struct pcmciamtd_dev *dev = link->priv;
@@ -676,12 +666,6 @@ static int pcmciamtd_resume(struct pcmcia_device *dev)
676} 666}
677 667
678 668
679/* This deletes a driver "instance". The device is de-registered
680 * with Card Services. If it has been released, all local data
681 * structures are freed. Otherwise, the structures will be freed
682 * when the device is released.
683 */
684
685static void pcmciamtd_detach(struct pcmcia_device *link) 669static void pcmciamtd_detach(struct pcmcia_device *link)
686{ 670{
687 struct pcmciamtd_dev *dev = link->priv; 671 struct pcmciamtd_dev *dev = link->priv;
@@ -699,11 +683,6 @@ static void pcmciamtd_detach(struct pcmcia_device *link)
699} 683}
700 684
701 685
702/* pcmciamtd_attach() creates an "instance" of the driver, allocating
703 * local data structures for one device. The device is registered
704 * with Card Services.
705 */
706
707static int pcmciamtd_probe(struct pcmcia_device *link) 686static int pcmciamtd_probe(struct pcmcia_device *link)
708{ 687{
709 struct pcmciamtd_dev *dev; 688 struct pcmciamtd_dev *dev;