[patch -mm] Fix pcmcia ds resume call

Richard Purdie rpurdie at rpsys.net
Sat Sep 17 11:11:08 EDT 2005


The pcmcia ds resume function shouldn't be making suspend calls.

Signed-Off-By: Richard Purdie <rpurdie at rpsys.net>

Index: linux-2.6.13/drivers/pcmcia/ds.c
===================================================================
--- linux-2.6.13.orig/drivers/pcmcia/ds.c	2005-09-17 10:55:39.000000000 +0100
+++ linux-2.6.13/drivers/pcmcia/ds.c	2005-09-17 16:01:22.000000000 +0100
@@ -995,8 +995,8 @@
 	if (dev->driver)
 		p_drv = to_pcmcia_drv(dev->driver);
 
-	if (p_drv && p_drv->suspend)
-		return p_drv->suspend(p_dev);
+	if (p_drv && p_drv->resume)
+		return p_drv->resume(p_dev);
 
 	return 0;
 }





More information about the linux-pcmcia mailing list